summaryrefslogtreecommitdiffstats
path: root/vec_float_avx.h
diff options
context:
space:
mode:
Diffstat (limited to 'vec_float_avx.h')
-rw-r--r--vec_float_avx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vec_float_avx.h b/vec_float_avx.h
index b7f6150..e015255 100644
--- a/vec_float_avx.h
+++ b/vec_float_avx.h
@@ -159,6 +159,7 @@ namespace vecmathlib {
intvec(int_t a): v(_mm256_set1_epi32(a)) {}
intvec(int_t const* as): v(_mm256_set_epi32(as[7], as[6], as[5], as[4],
as[3], as[2], as[1], as[0])) {}
+ static intvec iota() { return _mm256_set_epi32(7, 6, 5, 4, 3, 2, 1, 0); }
operator ivector_t() const { return v; }
int_t operator[](int n) const
OpenPOWER on IntegriCloud