1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-18 09:45:55 +01:00

NAMESPACE

This commit is contained in:
paboyle 2018-01-12 17:58:53 +00:00
parent 70e689900b
commit 13bce2a6bf

View File

@ -41,7 +41,6 @@ directory
// Vector types are arch dependent // Vector types are arch dependent
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
#define _MM_SELECT_FOUR_FOUR(A,B,C,D) ((A<<6)|(B<<4)|(C<<2)|(D)) #define _MM_SELECT_FOUR_FOUR(A,B,C,D) ((A<<6)|(B<<4)|(C<<2)|(D))
#define _MM_SELECT_FOUR_FOUR_STRING(A,B,C,D) "((" #A "<<6)|(" #B "<<4)|(" #C "<<2)|(" #D "))" #define _MM_SELECT_FOUR_FOUR_STRING(A,B,C,D) "((" #A "<<6)|(" #B "<<4)|(" #C "<<2)|(" #D "))"
#define _MM_SELECT_EIGHT_TWO(A,B,C,D,E,F,G,H) ((A<<7)|(B<<6)|(C<<5)|(D<<4)|(E<<3)|(F<<2)|(G<<4)|(H)) #define _MM_SELECT_EIGHT_TWO(A,B,C,D,E,F,G,H) ((A<<7)|(B<<6)|(C<<5)|(D<<4)|(E<<3)|(F<<2)|(G<<4)|(H))
@ -50,7 +49,7 @@ directory
#define RotateBit (0x100) #define RotateBit (0x100)
namespace Grid { NAMESPACE_BEGIN(Grid);
typedef uint32_t Integer; typedef uint32_t Integer;
@ -170,12 +169,12 @@ namespace Grid {
template<class VectorSIMD> template<class VectorSIMD>
inline void Gpermute(VectorSIMD &y,const VectorSIMD &b,int perm); inline void Gpermute(VectorSIMD &y,const VectorSIMD &b,int perm);
}; NAMESPACE_END(Grid);
#include <Grid/simd/Grid_vector_types.h> #include <Grid/simd/Grid_vector_types.h>
#include <Grid/simd/Grid_vector_unops.h> #include <Grid/simd/Grid_vector_unops.h>
namespace Grid { NAMESPACE_BEGIN(Grid);
// Default precision // Default precision
#ifdef GRID_DEFAULT_PRECISION_DOUBLE #ifdef GRID_DEFAULT_PRECISION_DOUBLE
typedef vRealD vReal; typedef vRealD vReal;
@ -250,6 +249,5 @@ namespace Grid {
return stream; return stream;
} }
NAMESPACE_END(Grid)
}
#endif #endif