aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/block/idea_sse2/idea_sse2.cpp6
-rw-r--r--src/utils/asm_x86_32/info.txt1
2 files changed, 1 insertions, 6 deletions
diff --git a/src/block/idea_sse2/idea_sse2.cpp b/src/block/idea_sse2/idea_sse2.cpp
index b92f51ac3..81b0fd9c1 100644
--- a/src/block/idea_sse2/idea_sse2.cpp
+++ b/src/block/idea_sse2/idea_sse2.cpp
@@ -16,7 +16,6 @@ inline __m128i mul(__m128i X, u16bit K_16)
{
const __m128i zeros = _mm_set1_epi16(0);
const __m128i ones = _mm_set1_epi16(1);
- const __m128i high_bit = _mm_set1_epi16(-32767); // 0x8000
const __m128i K = _mm_set1_epi16(K_16);
@@ -29,10 +28,7 @@ inline __m128i mul(__m128i X, u16bit K_16)
__m128i T = _mm_sub_epi16(mul_lo, mul_hi);
// Unsigned compare; cmp = 1 if mul_lo < mul_hi else 0
- const __m128i cmp = _mm_srli_epi16(_mm_cmpgt_epi16(
- _mm_add_epi16(mul_hi, high_bit),
- _mm_add_epi16(mul_lo, high_bit)),
- 15);
+ const __m128i cmp = _mm_min_epu8(ones, _mm_subs_epu16(mul_hi, mul_lo));
T = _mm_add_epi16(T, cmp);
diff --git a/src/utils/asm_x86_32/info.txt b/src/utils/asm_x86_32/info.txt
index 8534d9aef..21244968f 100644
--- a/src/utils/asm_x86_32/info.txt
+++ b/src/utils/asm_x86_32/info.txt
@@ -19,7 +19,6 @@ solaris
</os>
<cc>
-clang
gcc
icc
</cc>