aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/simd_32/simd_sse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/simd_32/simd_sse.h')
-rw-r--r--src/utils/simd_32/simd_sse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/simd_32/simd_sse.h b/src/utils/simd_32/simd_sse.h
index d9135f1c7..d2ef4b211 100644
--- a/src/utils/simd_32/simd_sse.h
+++ b/src/utils/simd_32/simd_sse.h
@@ -70,6 +70,16 @@ class SIMD_SSE2
return _mm_add_epi32(reg, other.reg);
}
+ void operator-=(const SIMD_SSE2& other)
+ {
+ reg = _mm_sub_epi32(reg, other.reg);
+ }
+
+ SIMD_SSE2 operator-(const SIMD_SSE2& other) const
+ {
+ return _mm_sub_epi32(reg, other.reg);
+ }
+
void operator^=(const SIMD_SSE2& other)
{
reg = _mm_xor_si128(reg, other.reg);