diff options
Diffstat (limited to 'vec_float_sse2_scalar.h')
-rw-r--r-- | vec_float_sse2_scalar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vec_float_sse2_scalar.h b/vec_float_sse2_scalar.h index f8786c6..0aba3b2 100644 --- a/vec_float_sse2_scalar.h +++ b/vec_float_sse2_scalar.h @@ -41,6 +41,7 @@ namespace vecmathlib { static int const size = 1; typedef bool scalar_t; typedef uint_t bvector_t; + static int const alignment = sizeof(bvector_t); static_assert(size * sizeof(real_t) == sizeof(bvector_t), "vector size is wrong"); @@ -112,6 +113,7 @@ namespace vecmathlib { static int const size = 1; typedef int_t scalar_t; typedef int_t ivector_t; + static int const alignment = sizeof(ivector_t); static_assert(size * sizeof(real_t) == sizeof(ivector_t), "vector size is wrong"); @@ -217,6 +219,7 @@ namespace vecmathlib { static int const size = 1; typedef real_t scalar_t; typedef float vector_t; + static int const alignment = sizeof(vector_t); static char const* name() { return "<SSE2:1*float>"; } void barrier() { __asm__("": "+x" (v)); } |