diff options
-rw-r--r-- | vec_altivec_float4.h (renamed from vec_float_altivec.h) | 6 | ||||
-rw-r--r-- | vec_avx_double4.h (renamed from vec_double_avx.h) | 6 | ||||
-rw-r--r-- | vec_avx_float8.h (renamed from vec_float_avx.h) | 6 | ||||
-rw-r--r-- | vec_avx_fp16_16.h (renamed from vec_fp16_avx.h) | 6 | ||||
-rw-r--r-- | vec_avx_fp8_32.h (renamed from vec_fp8_avx.h) | 6 | ||||
-rw-r--r-- | vec_neon_float2.h (renamed from vec_float_neon.h) | 6 | ||||
-rw-r--r-- | vec_qpx_double4.h (renamed from vec_double_qpx.h) | 6 | ||||
-rw-r--r-- | vec_sse_double1.h (renamed from vec_double_sse2_scalar.h) | 6 | ||||
-rw-r--r-- | vec_sse_double2.h (renamed from vec_double_sse2.h) | 6 | ||||
-rw-r--r-- | vec_sse_float1.h (renamed from vec_float_sse2_scalar.h) | 6 | ||||
-rw-r--r-- | vec_sse_float4.h (renamed from vec_float_sse2.h) | 6 | ||||
-rw-r--r-- | vec_vsx_double2.h (renamed from vec_double_vsx.h) | 6 | ||||
-rw-r--r-- | vecmathlib.h | 29 |
13 files changed, 52 insertions, 49 deletions
diff --git a/vec_float_altivec.h b/vec_altivec_float4.h index 1fdcbb4..813141e 100644 --- a/vec_float_altivec.h +++ b/vec_altivec_float4.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FLOAT_ALTIVEC_H -#define VEC_FLOAT_ALTIVEC_H +#ifndef VEC_ALTIVEC_FLOAT4_H +#define VEC_ALTIVEC_FLOAT4_H #include "floatprops.h" #include "mathfuncs.h" @@ -550,4 +550,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FLOAT_ALTIVEC_H +#endif // #ifndef VEC_ALTIVEC_FLOAT4_H diff --git a/vec_double_avx.h b/vec_avx_double4.h index cf5e97c..15f7edf 100644 --- a/vec_double_avx.h +++ b/vec_avx_double4.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_DOUBLE_AVX_H -#define VEC_DOUBLE_AVX_H +#ifndef VEC_AVX_DOUBLE4_H +#define VEC_AVX_DOUBLE4_H #include "floatprops.h" #include "mathfuncs.h" @@ -640,4 +640,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_DOUBLE_AVX_H +#endif // #ifndef VEC_AVX_DOUBLE4_H diff --git a/vec_float_avx.h b/vec_avx_float8.h index 6c4f1ee..e7e1187 100644 --- a/vec_float_avx.h +++ b/vec_avx_float8.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FLOAT_AVX_H -#define VEC_FLOAT_AVX_H +#ifndef VEC_AVX_FLOAT8_H +#define VEC_AVX_FLOAT8_H #include "floatprops.h" #include "mathfuncs.h" @@ -643,4 +643,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FLOAT_AVX_H +#endif // #ifndef VEC_AVX_FLOAT8_H diff --git a/vec_fp16_avx.h b/vec_avx_fp16_16.h index 5dc456c..7cb98b2 100644 --- a/vec_fp16_avx.h +++ b/vec_avx_fp16_16.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FP16_AVX_H -#define VEC_FP16_AVX_H +#ifndef VEC_AVX_FP16_16_H +#define VEC_AVX_FP16_16_H #include "floatprops.h" #include "mathfuncs.h" @@ -579,4 +579,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FP16_AVX_H +#endif // #ifndef VEC_AVX_FP16_16_H diff --git a/vec_fp8_avx.h b/vec_avx_fp8_32.h index 16087d1..a6e33a1 100644 --- a/vec_fp8_avx.h +++ b/vec_avx_fp8_32.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FP8_AVX_H -#define VEC_FP8_AVX_H +#ifndef VEC_AVX_FP8_32_H +#define VEC_AVX_FP8_32_H #include "floatprops.h" #include "mathfuncs.h" @@ -645,4 +645,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FP8_AVX_H +#endif // #ifndef VEC_AVX_FP8_32_H diff --git a/vec_float_neon.h b/vec_neon_float2.h index fccc10f..258a091 100644 --- a/vec_float_neon.h +++ b/vec_neon_float2.h @@ -2,8 +2,8 @@ // <http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html> -#ifndef VEC_FLOAT_NEON_H -#define VEC_FLOAT_NEON_H +#ifndef VEC_NEON_FLOAT2_H +#define VEC_NEON_FLOAT2_H #include "floatprops.h" #include "mathfuncs.h" @@ -555,4 +555,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FLOAT_NEON_H +#endif // #ifndef VEC_NEON_FLOAT2_H diff --git a/vec_double_qpx.h b/vec_qpx_double4.h index 8ffdf67..e7a1c05 100644 --- a/vec_double_qpx.h +++ b/vec_qpx_double4.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_DOUBLE_QPX_H -#define VEC_DOUBLE_QPX_H +#ifndef VEC_QPX_DOUBLE4_H +#define VEC_QPX_DOUBLE4_H #include "floatprops.h" #include "mathfuncs.h" @@ -664,4 +664,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_DOUBLE_QPX_H +#endif // #ifndef VEC_QPX_DOUBLE4_H diff --git a/vec_double_sse2_scalar.h b/vec_sse_double1.h index 4c3b4b6..ff1145e 100644 --- a/vec_double_sse2_scalar.h +++ b/vec_sse_double1.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_DOUBLE_SSE2_SCALAR_H -#define VEC_DOUBLE_SSE2_SCALAR_H +#ifndef VEC_SSE_DOUBLE1_H +#define VEC_SSE_DOUBLE1_H #include "floatprops.h" #include "mathfuncs.h" @@ -525,4 +525,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_DOUBLE_SSE2_SCALAR_H +#endif // #ifndef VEC_SSE_DOUBLE1_H diff --git a/vec_double_sse2.h b/vec_sse_double2.h index 7c31d2d..2cbbd38 100644 --- a/vec_double_sse2.h +++ b/vec_sse_double2.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_DOUBLE_SSE2_H -#define VEC_DOUBLE_SSE2_H +#ifndef VEC_SSE_DOUBLE2_H +#define VEC_SSE_DOUBLE2_H #include "floatprops.h" #include "mathfuncs.h" @@ -643,4 +643,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_DOUBLE_SSE2_H +#endif // #ifndef VEC_SSE_DOUBLE2_H diff --git a/vec_float_sse2_scalar.h b/vec_sse_float1.h index 8dcb5b4..9e3d12e 100644 --- a/vec_float_sse2_scalar.h +++ b/vec_sse_float1.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FLOAT_SSE2_SCALAR_H -#define VEC_FLOAT_SSE2_SCALAR_H +#ifndef VEC_SSE2_FLOAT1_H +#define VEC_SSE2_FLOAT1_H #include "floatprops.h" #include "mathfuncs.h" @@ -520,4 +520,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FLOAT_SSE2_SCALAR_H +#endif // #ifndef VEC_SSE2_FLOAT1_H diff --git a/vec_float_sse2.h b/vec_sse_float4.h index c87ae02..5259cb2 100644 --- a/vec_float_sse2.h +++ b/vec_sse_float4.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_FLOAT_SSE2_H -#define VEC_FLOAT_SSE2_H +#ifndef VEC_SSE_FLOAT4_H +#define VEC_SSE_FLOAT4_H #include "floatprops.h" #include "mathfuncs.h" @@ -648,4 +648,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_FLOAT_SSE2_H +#endif // #ifndef VEC_SSE_FLOAT4_H diff --git a/vec_double_vsx.h b/vec_vsx_double2.h index 67b4b36..024056d 100644 --- a/vec_double_vsx.h +++ b/vec_vsx_double2.h @@ -1,7 +1,7 @@ // -*-C++-*- -#ifndef VEC_DOUBLE_VSX_H -#define VEC_DOUBLE_VSX_H +#ifndef VEC_VSX_DOUBLE2_H +#define VEC_VSX_DOUBLE2_H #include "floatprops.h" #include "mathfuncs.h" @@ -653,4 +653,4 @@ namespace vecmathlib { } // namespace vecmathlib -#endif // #ifndef VEC_DOUBLE_VSX_H +#endif // #ifndef VEC_VSX_DOUBLE2_H diff --git a/vecmathlib.h b/vecmathlib.h index e79188a..3e04b19 100644 --- a/vecmathlib.h +++ b/vecmathlib.h @@ -53,35 +53,38 @@ namespace std { class type_info; } #if defined __ARM_PCS_VFP // ARM NEON // TODO: VFP -# include "vec_float_neon.h" +// TODO: vec_neon_float4 +# include "vec_neon_float2.h" #endif #if defined __SSE2__ // Intel SSE 2 -# include "vec_float_sse2_scalar.h" -# include "vec_double_sse2_scalar.h" -# include "vec_float_sse2.h" -# include "vec_double_sse2.h" +# include "vec_sse_float1.h" +# include "vec_sse_float4.h" +# include "vec_sse_double1.h" +# include "vec_sse_double2.h" #endif #if defined __AVX__ // Intel AVX -# include "vec_fp8_avx.h" -# include "vec_fp16_avx.h" -# include "vec_float_avx.h" -# include "vec_double_avx.h" +# include "vec_avx_fp8_32.h" +# include "vec_avx_fp16_16.h" +# include "vec_avx_float8.h" +# include "vec_avx_double4.h" #endif +// TODO: MIC + #if defined __ALTIVEC__ // IBM Altivec -# include "vec_float_altivec.h" +# include "vec_altivec_float4.h" #endif #if defined __VSX__ // IBM VSX -# include "vec_double_vsx.h" +# include "vec_vsx_double2.h" #endif // TODO: IBM Blue Gene/P DoubleHummer #if defined __bgq__ && defined __VECTOR4DOUBLE__ // IBM Blue Gene/Q QPX -// TODO: vec_float_qpx -# include "vec_double_qpx.h" +// TODO: vec_qpx_float4 +# include "vec_qpx_double4.h" #endif #endif // #ifndef VECMATHLIB_H |