1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-13 20:57:06 +01:00

Change the SIMD command correctly with precision = double vs. single and

connect the "Real" default precisoin to a configure flag.
Have RealF, RealD and Real types, where Real is compile target dependent single/double,
RealF is single and RealD is double etc..
This commit is contained in:
Peter Boyle
2015-07-01 22:45:15 +01:00
parent e618c609fe
commit 98b84d230a
37 changed files with 81 additions and 36 deletions

View File

@ -18,6 +18,12 @@
/* GRID_COMMS_NONE */
#undef GRID_COMMS_NONE
/* GRID_DEFAULT_PRECISION is DOUBLE */
#undef GRID_DEFAULT_PRECISION_DOUBLE
/* GRID_DEFAULT_PRECISION is SINGLE */
#undef GRID_DEFAULT_PRECISION_SINGLE
/* Support Altivec instructions */
#undef HAVE_ALTIVEC

View File

@ -17,7 +17,6 @@ namespace Grid {
typedef float RealF;
typedef double RealD;
#define GRID_DEFAULT_PRECISION_DOUBLE
#ifdef GRID_DEFAULT_PRECISION_DOUBLE
typedef RealD Real;
#else