summaryrefslogtreecommitdiff
path: root/libavutil/x86/intmath.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-01-21 00:02:09 -0300
committerJames Almer <jamrial@gmail.com>2016-01-21 16:50:51 -0300
commita2e1b66460794fe99caceb46790bab6e175c9d30 (patch)
treeed5d884ac6d5134f81e2c2d7af0d34708b23a4b1 /libavutil/x86/intmath.h
parent6ed3a10f644b7e96ec2bece7ab6c98629fdd5ff9 (diff)
x86/intmath: disable sse av_clip functions when using ICC
It seems to miscompile them Should fix fate-ra-288 and fate-twinvq Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/x86/intmath.h')
-rw-r--r--libavutil/x86/intmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
index 3e279df084..f58b0d08da 100644
--- a/libavutil/x86/intmath.h
+++ b/libavutil/x86/intmath.h
@@ -99,7 +99,7 @@ static av_always_inline av_const unsigned av_mod_uintp2_bmi2(unsigned a, unsigne
#endif /* __BMI2__ */
-#if defined(__SSE2__)
+#if defined(__SSE2__) && !defined(__INTEL_COMPILER)
#define av_clipd av_clipd_sse2
static av_always_inline av_const double av_clipd_sse2(double a, double amin, double amax)
@@ -115,7 +115,7 @@ static av_always_inline av_const double av_clipd_sse2(double a, double amin, dou
#endif /* __SSE2__ */
-#if defined(__SSE__)
+#if defined(__SSE__) && !defined(__INTEL_COMPILER)
#define av_clipf av_clipf_sse
static av_always_inline av_const float av_clipf_sse(float a, float amin, float amax)