diff options
Diffstat (limited to 'src/vectors-8-default.h')
-rw-r--r-- | src/vectors-8-default.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/vectors-8-default.h b/src/vectors-8-default.h index 279cdb2..aaed7d9 100644 --- a/src/vectors-8-default.h +++ b/src/vectors-8-default.h @@ -1,13 +1,16 @@ // Fallback vectorisation implementation: Do not vectorise - - // We use macros here, so that we are not surprised by compilers which // don't like to inline functions. This should also make debug builds // (which may not inline) more efficient. +#include <assert.h> +#include <math.h> + + + #define vec8_architecture "scalar (no vectorisation, 64-bit precision)" // Use CCTK_REAL8 @@ -81,11 +84,10 @@ #define k8pow(x,a) (pow(x,a)) #define k8sqrt(x) (sqrt(x)) -#include <math.h> #ifdef __cplusplus -#define SGN(x) std::signbit(x) +# define SGN(x) std::signbit(x) #else -#define SGN(x) signbit(x) +# define SGN(x) signbit(x) #endif #define k8ifpos(x,y,z) (SGN(x)?(z):(y)) |