diff options
-rw-r--r-- | src/atomic_ops/sysdeps/msftc/x86.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atomic_ops/sysdeps/msftc/x86.h b/src/atomic_ops/sysdeps/msftc/x86.h index d18ac13..ba2400a 100644 --- a/src/atomic_ops/sysdeps/msftc/x86.h +++ b/src/atomic_ops/sysdeps/msftc/x86.h @@ -35,6 +35,11 @@ # define AO_ASSUME_WINDOWS98 #endif +#if !defined(AO_USE_PENTIUM4_INSTRS) && _M_IX86_FP >= 2 /* SSE2 */ + /* "mfence" is a part of SSE2 set (introduced on Intel Pentium 4). */ +# define AO_USE_PENTIUM4_INSTRS +#endif + #define AO_T_IS_INT #ifndef AO_USE_INTERLOCKED_INTRINSICS |