diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-04-23 12:55:27 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-04-23 12:55:27 -0400 |
commit | 3815c0572b78d4bc2cb2117c1a2b1ba9ae4a7d15 (patch) | |
tree | a40dfa0be34bd82d9e5159d64b001a7de9f9e87e /vec_pseudo.h | |
parent | 426aaa47ed4724b06b92cb2d1e9097d4dda20b54 (diff) | |
download | vecmathlib-3815c0572b78d4bc2cb2117c1a2b1ba9ae4a7d15.zip vecmathlib-3815c0572b78d4bc2cb2117c1a2b1ba9ae4a7d15.tar.gz |
Reduce alignment requirement for vec_pseudo and vec_test
Diffstat (limited to 'vec_pseudo.h')
-rw-r--r-- | vec_pseudo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vec_pseudo.h b/vec_pseudo.h index a319502..f809316 100644 --- a/vec_pseudo.h +++ b/vec_pseudo.h @@ -32,7 +32,7 @@ namespace vecmathlib { static int const size = N; typedef bool scalar_t; typedef uint_t bvector_t[size]; - static int const alignment = sizeof(bvector_t); + static int const alignment = sizeof(uint_t); typedef boolpseudovec boolvec_t; typedef intpseudovec<real_t, size> intvec_t; @@ -50,7 +50,7 @@ namespace vecmathlib { - bvector_t v __attribute__((__aligned__(alignment))); + bvector_t v; boolpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't @@ -134,7 +134,7 @@ namespace vecmathlib { static int const size = N; typedef int_t scalar_t; typedef int_t ivector_t[size]; - static int const alignment = sizeof(ivector_t); + static int const alignment = sizeof(int_t); typedef boolpseudovec<real_t, size> boolvec_t; typedef intpseudovec intvec_t; @@ -152,7 +152,7 @@ namespace vecmathlib { - ivector_t v __attribute__((__aligned__(alignment))); + ivector_t v; intpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't @@ -405,7 +405,7 @@ namespace vecmathlib { static int const size = N; typedef real_t scalar_t; typedef real_t vector_t[size]; - static int const alignment = sizeof(vector_t); + static int const alignment = sizeof(real_t); static char const* name() { @@ -474,7 +474,7 @@ namespace vecmathlib { - vector_t v __attribute__((__aligned__(alignment))); + vector_t v; realpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't |