-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there interest in a SSE port of vec4, quat & mat4? #16
Comments
Definitely! It's always been on my "to do someday" list :) On 2 November 2013 08:49, Marcelo Politzer Couto
|
Sorry for the really long delay. For example:
Would become like this aliviating the load/store cost:
A vec3 could be implemented as a vec4 and eat an extra float, or stay as float[3] and be transformed into a vec4 and back to vec3 for each operation eating some performance. Mat4 is good as it is regarding SSE operations. I've never used Mat3 with SSE, so I can't say, but seems ok. So for SSE (with float): quat, plane, vec4, vec3, Mat4, Mat3 seem like the best targets. |
Hmm, OK, obviously changing the API at this point isn't ideal, however, I kmVec4 kmVec4AddSSE(...) //SSE postfix, pass by value kmVec4* kmVec4Add(kmVec4* pOut) { //Existing function thunks the SSE This way, we don't break the API, and users can choose to use the SSE Everything else sounds awesome, I'm looking forward to reviewing your code Thanks, Luke. On 10 November 2013 22:02, Marcelo Politzer Couto
|
I'm not up on SSE so I don't see why you can't point to a struct of SSE Will there be a compile time switch so none x86 can still use the lib (arm Re vec3 / vec4 its not uncommon for alignment reasons for vec3 to have an
|
Hey Just want to let you know that I'm not ignoring you, just trying to find a Sorry!
|
Hi Marcelo, So, I've had a quick look and it looks awesome, I just have one suggestion. We'll have to ensure that our normal kmVec4 struct is packed on 16 byte When you are happy with your work, just send a pull request and I'll Amazing work! Luke. On 14 November 2013 17:56, Luke Benstead kazade@gmail.com wrote:
|
I'm willing to do it. I just wan't to make sure there is a possibility of inclusion before starting.
Regards,
Marcelo
The text was updated successfully, but these errors were encountered: