Created SIMD module
[alexxy/gromacs.git] / src / gromacs / simd / macros.h
similarity index 97%
rename from src/gromacs/legacyheaders/gmx_simd_macros.h
rename to src/gromacs/simd/macros.h
index d15b49c912dff9dca7e2098982d69eb719ce86d8..797fc1e442d76ba46c4d6ea325685948579f0c2e 100644 (file)
  * all that is needed.
  */
 
-#ifdef _gmx_simd_macros_h_
-#error "gmx_simd_macros.h included twice"
+#ifdef GMX_SIMD_MACROS_H
+#error "gromacs/simd/macros.h included twice"
 #else
-#define _gmx_simd_macros_h_
+#define GMX_SIMD_MACROS_H
 
 /* NOTE: SSE2 acceleration does not include floor or blendv */
 
@@ -59,7 +59,7 @@
 #define GMX_SIMD_REF_WIDTH  4
 
 /* Include plain-C reference implementation, also serves as documentation */
-#include "gmx_simd_ref.h"
+#include "gromacs/simd/macros_ref.h"
 
 #define GMX_SIMD_WIDTH_HERE  GMX_SIMD_REF_WIDTH
 
 
 /* Include the highest supported x86 SIMD intrisics + math functions */
 #ifdef GMX_X86_AVX_256
-#include "gmx_x86_avx_256.h"
+#include "general_x86_avx_256.h"
 #ifdef GMX_DOUBLE
-#include "gmx_math_x86_avx_256_double.h"
+#include "math_x86_avx_256_double.h"
 #else  /* GMX_DOUBLE */
-#include "gmx_math_x86_avx_256_single.h"
+#include "math_x86_avx_256_single.h"
 #endif /* GMX_DOUBLE */
 #else  /* GMX_X86_AVX_256 */
 #ifdef GMX_X86_AVX_128_FMA
-#include "gmx_x86_avx_128_fma.h"
+#include "general_x86_avx_128_fma.h"
 #ifdef GMX_DOUBLE
-#include "gmx_math_x86_avx_128_fma_double.h"
+#include "math_x86_avx_128_fma_double.h"
 #else  /* GMX_DOUBLE */
-#include "gmx_math_x86_avx_128_fma_single.h"
+#include "math_x86_avx_128_fma_single.h"
 #endif /* GMX_DOUBLE */
 #else  /* GMX_X86_AVX_128_FMA */
 #ifdef GMX_X86_SSE4_1
-#include "gmx_x86_sse4_1.h"
+#include "general_x86_sse4_1.h"
 #ifdef GMX_DOUBLE
-#include "gmx_math_x86_sse4_1_double.h"
+#include "math_x86_sse4_1_double.h"
 #else  /* GMX_DOUBLE */
-#include "gmx_math_x86_sse4_1_single.h"
+#include "math_x86_sse4_1_single.h"
 #endif /* GMX_DOUBLE */
 #else  /* GMX_X86_SSE4_1 */
 #ifdef GMX_X86_SSE2
-#include "gmx_x86_sse2.h"
+#include "general_x86_sse2.h"
 #ifdef GMX_DOUBLE
-#include "gmx_math_x86_sse2_double.h"
+#include "math_x86_sse2_double.h"
 #else  /* GMX_DOUBLE */
-#include "gmx_math_x86_sse2_single.h"
+#include "math_x86_sse2_single.h"
 #endif /* GMX_DOUBLE */
 #else  /* GMX_X86_SSE2 */
 #error No x86 acceleration defined
@@ -805,12 +805,12 @@ gmx_simd_align_int(const int *x)
  * generally these are the ones that don't need masking operations.
  */
 #ifdef GMX_DOUBLE
-#include "gmx_simd_math_double.h"
+#include "math_double.h"
 #else
-#include "gmx_simd_math_single.h"
+#include "math_single.h"
 #endif
 
 
 #endif /* GMX_HAVE_SIMD_MACROS */
 
-#endif /* _gmx_simd_macros_h_ */
+#endif