aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/idea_sse2
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-29 16:05:40 +0000
committerlloyd <[email protected]>2010-11-29 16:05:40 +0000
commit5c5c68106ee2f2ca6b1181ff83aa080bbd9849d8 (patch)
tree652e065d3e8ab0aaff98cc066f6d28171df02ccd /src/block/idea_sse2
parent1da462a9aa2cc18490b3c271e332ccf5842ef641 (diff)
Avoid VC cast warning
Diffstat (limited to 'src/block/idea_sse2')
-rw-r--r--src/block/idea_sse2/idea_sse2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/idea_sse2/idea_sse2.cpp b/src/block/idea_sse2/idea_sse2.cpp
index 469a33943..f2c770103 100644
--- a/src/block/idea_sse2/idea_sse2.cpp
+++ b/src/block/idea_sse2/idea_sse2.cpp
@@ -16,7 +16,7 @@ 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(0x8000);
+ const __m128i high_bit = _mm_set1_epi16(-32767); // 0x8000
const __m128i K = _mm_set1_epi16(K_16);