Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. template < unsigned int stride = 0 >
  2. class __Vector4
  3. {
  4. private:
  5.     __declspec(align(16)) union
  6.     {
  7.         __declspec(align(16)) __m128  vec;
  8.         __declspec(align(16)) float   f [ 4 ];
  9.     };
  10.  
  11.     // Constructores.
  12. public:
  13.     __Vector4 ()
  14.     : f ( { 0, 0, 0, 0 } )
  15.     {
  16. #ifdef _DEBUG
  17.         assert ( ( (unsigned int)&f[0] % 16 ) == 0 );
  18. #endif
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement