diff options
Diffstat (limited to 'vec_float_avx.h')
-rw-r--r-- | vec_float_avx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vec_float_avx.h b/vec_float_avx.h index aed972a..8d9cf82 100644 --- a/vec_float_avx.h +++ b/vec_float_avx.h @@ -29,6 +29,7 @@ namespace vecmathlib { static int const size = 8; typedef bool scalar_t; typedef __m256 bvector_t; + static int const alignment = sizeof(bvector_t); static_assert(size * sizeof(real_t) == sizeof(bvector_t), "vector size is wrong"); @@ -136,6 +137,7 @@ namespace vecmathlib { static int const size = 8; typedef int_t scalar_t; typedef __m256i ivector_t; + static int const alignment = sizeof(ivector_t); static_assert(size * sizeof(real_t) == sizeof(ivector_t), "vector size is wrong"); @@ -321,6 +323,7 @@ namespace vecmathlib { static int const size = 8; typedef real_t scalar_t; typedef __m256 vector_t; + static int const alignment = sizeof(vector_t); static char const* name() { return "<AVX:8*float>"; } void barrier() { __asm__("": "+x" (v)); } |