Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Chudyk <mateuszchudyk@gmail.com>2020-01-10 17:52:48 +0300
committerMateusz Chudyk <mateuszchudyk@gmail.com>2020-01-10 17:53:02 +0300
commit719bf3d6160864f564f339af4c1b9f6c8eafb908 (patch)
tree1a029f92e7a7c8007800b3a353db898536f62f11
parent86feaac3c5049b27f4ef571965242d4a8fb1943c (diff)
Add vector_t for SSSE3
-rw-r--r--vec_traits.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vec_traits.h b/vec_traits.h
index 99065f4..6c4ec28 100644
--- a/vec_traits.h
+++ b/vec_traits.h
@@ -13,6 +13,11 @@ template <> struct vector_s<CPUType::SSE2, int16_t> { using type = __m128i; };
template <> struct vector_s<CPUType::SSE2, int> { using type = __m128i; };
template <> struct vector_s<CPUType::SSE2, float> { using type = __m128; };
template <> struct vector_s<CPUType::SSE2, double> { using type = __m128d; };
+template <> struct vector_s<CPUType::SSSE3, int8_t> { using type = __m128i; };
+template <> struct vector_s<CPUType::SSSE3, int16_t> { using type = __m128i; };
+template <> struct vector_s<CPUType::SSSE3, int> { using type = __m128i; };
+template <> struct vector_s<CPUType::SSSE3, float> { using type = __m128; };
+template <> struct vector_s<CPUType::SSSE3, double> { using type = __m128d; };
template <> struct vector_s<CPUType::AVX2, int8_t> { using type = __m256i; };
template <> struct vector_s<CPUType::AVX2, int16_t> { using type = __m256i; };
template <> struct vector_s<CPUType::AVX2, int> { using type = __m256i; };