summaryrefslogtreecommitdiffstats
path: root/vec_float_avx.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-02-04 23:51:37 -0500
committerErik Schnetter <schnetter@gmail.com>2013-02-04 23:51:37 -0500
commit43d26c25c6bbdefcca43278de42bf0ae524adb72 (patch)
tree0843fe20e528a770520f6d1aae0b8e33cf0bf8b3 /vec_float_avx.h
parent82803ea5e87bf83a02f26e0e7aa73bdb503f73d9 (diff)
downloadvecmathlib-43d26c25c6bbdefcca43278de42bf0ae524adb72.zip
vecmathlib-43d26c25c6bbdefcca43278de42bf0ae524adb72.tar.gz
Provide intvec_t::iota()
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