aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers/xmmintrin.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-11 06:29:32 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-11 06:29:32 +0000
commit4cc44279846d9a4394c73bca539ae3e646a041b0 (patch)
tree2367dd69ca2311f72d2ac2c2d5ef09d631da44d2 /lib/Headers/xmmintrin.h
parent3ebc36a1c15537684a62a02a2d6c94bbb4a9e4cc (diff)
Fix some mistakes I made when I tried to decipher the Intel documentation of the MXCSR register
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/xmmintrin.h')
-rw-r--r--lib/Headers/xmmintrin.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h
index 4ef5f7ed30..978afa997f 100644
--- a/lib/Headers/xmmintrin.h
+++ b/lib/Headers/xmmintrin.h
@@ -712,22 +712,27 @@ static inline int __attribute__((__always_inline__)) _mm_movemask_ps(__m128 a)
#define _MM_SHUFFLE(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w))
-#define _MM_MASK_INVALID (0x0001)
-#define _MM_MASK_DENORM (0x0002)
-#define _MM_MASK_DIV_ZERO (0x0004)
-#define _MM_MASK_OVERFLOW (0x0008)
-#define _MM_MASK_UNDERFLOW (0x0010)
-#define _MM_MASK_INEXACT (0x0020)
+#define _MM_EXCEPT_INVALID (0x0001)
+#define _MM_EXCEPT_DENORM (0x0002)
+#define _MM_EXCEPT_DIV_ZERO (0x0004)
+#define _MM_EXCEPT_OVERFLOW (0x0008)
+#define _MM_EXCEPT_UNDERFLOW (0x0010)
+#define _MM_EXCEPT_INEXACT (0x0020)
#define _MM_EXCEPT_MASK (0x003f)
+
#define _MM_MASK_INVALID (0x0080)
#define _MM_MASK_DENORM (0x0100)
+#define _MM_EXCEPT_DIV_ZERO (0x0200)
+#define _MM_EXCEPT_OVERFLOW (0x0400)
+#define _MM_EXCEPT_UNDERFLOW (0x0800)
+#define _MM_EXCEPT_INEXACT (0x1000)
#define _MM_MASK_MASK (0x1f80)
-#define _MM_ROUND_MASK (0x6000)
#define _MM_ROUND_NEAREST (0x0000)
#define _MM_ROUND_DOWN (0x2000)
#define _MM_ROUND_UP (0x4000)
#define _MM_ROUND_TOWARD_ZERO (0x6000)
+#define _MM_ROUND_MASK (0x6000)
#define _MM_FLUSH_ZERO_MASK (0x8000)
#define _MM_FLUSH_ZERO_ON (0x8000)