Added double vector types

This commit is contained in:
Jack Andersen 2015-10-07 13:50:50 -10:00
parent f4716070dd
commit e6dedd0e6c
1 changed files with 27 additions and 0 deletions

View File

@ -96,6 +96,33 @@ typedef union alignas(16)
float vec[4]; float vec[4];
} atVec4f; } atVec4f;
typedef union alignas(16)
{
#if __SSE__
__m128d mVec128;
AT_ALIGNED_ALLOCATOR
#endif
double vec[2];
} atVec2d;
typedef union alignas(16)
{
#if __SSE__
__m128d mVec128[2];
AT_ALIGNED_ALLOCATOR
#endif
double vec[3];
} atVec3d;
typedef union alignas(16)
{
#if __SSE__
__m128d mVec128[2];
AT_ALIGNED_ALLOCATOR
#endif
double vec[4];
} atVec4d;
#ifndef NULL #ifndef NULL
#ifdef __cplusplus #ifdef __cplusplus