Created
February 12, 2016 13:24
-
-
Save bitnenfer/6c6ed7d9e6b61c84c4b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct soa_vector4 | |
{ | |
union alignas(16) | |
{ | |
struct | |
{ | |
float x[4]; | |
float y[4]; | |
float z[4]; | |
float w[4]; | |
}; | |
struct | |
{ | |
__m128 x; | |
__m128 y; | |
__m128 z; | |
__m128 w; | |
} sse; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment