Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template < unsigned int stride = 0 >
- class __Vector4
- {
- private:
- __declspec(align(16)) union
- {
- __declspec(align(16)) __m128 vec;
- __declspec(align(16)) float f [ 4 ];
- };
- // Constructores.
- public:
- __Vector4 ()
- : f ( { 0, 0, 0, 0 } )
- {
- #ifdef _DEBUG
- assert ( ( (unsigned int)&f[0] % 16 ) == 0 );
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement