summaryrefslogtreecommitdiffstats
path: root/vec_float_altivec.h
diff options
context:
space:
mode:
Diffstat (limited to 'vec_float_altivec.h')
-rw-r--r--vec_float_altivec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vec_float_altivec.h b/vec_float_altivec.h
index c4f48f7..a1fca6c 100644
--- a/vec_float_altivec.h
+++ b/vec_float_altivec.h
@@ -32,6 +32,7 @@ namespace vecmathlib {
static int const size = 4;
typedef bool scalar_t;
typedef __vector __bool int bvector_t;
+ static int const alignment = sizeof(bvector_t);
static_assert(size * sizeof(real_t) == sizeof(bvector_t),
"vector size is wrong");
@@ -111,6 +112,7 @@ namespace vecmathlib {
static int const size = 4;
typedef int_t scalar_t;
typedef __vector int ivector_t;
+ static int const alignment = sizeof(ivector_t);
static_assert(size * sizeof(real_t) == sizeof(ivector_t),
"vector size is wrong");
@@ -218,6 +220,7 @@ namespace vecmathlib {
static int const size = 4;
typedef real_t scalar_t;
typedef __vector float vector_t;
+ static int const alignment = sizeof(vector_t);
static char const* name() { return "<Altivec:4*float>"; }
void barrier() { __asm__("": "+v" (v)); }
OpenPOWER on IntegriCloud