-
Notifications
You must be signed in to change notification settings - Fork 11
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
Alignment 16 for Vec3f for better simd instructions? #27
Comments
yeah if you have a use case for it and the codegen is better, seems like something other people might like as well. I am using vec3f in other code bases which might be packed in structs so possibly something like do you have any example code showing the improvement in codegen for the aligned types? |
I yet have to do some digging and struct packing in my engine before can say if this is going to make a real difference. |
but it seems like you can't align a typedef :/ |
would be good to get some test cases where it shows improvement and then its worth digging into what would be a nice way to add this support. Easiest way is just to enable the alignment on a macro so you can choose to use aligned or not |
I was wondering could a explicit alignment attribute for Vec3f improve code generation for SIMD instructions?
The text was updated successfully, but these errors were encountered: