diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-10-20 08:31:20 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-10-20 16:45:27 +0300 |
commit | f5d006471b7ec552f50a99bd690d6d5706073a0c (patch) | |
tree | 221674a47921e1eb25c058384f18820706cab341 /src | |
parent | 6a1d4067c1ea4801b56bf32752a5a745a22fca01 (diff) | |
download | libatomic_ops-f5d006471b7ec552f50a99bd690d6d5706073a0c.tar.gz |
Force AO_USE_INTERLOCKED_INTRINSICS in msftc/x86_64.h
(fix of commit 9831779d8)
* src/atomic_ops/sysdeps/msftc/common32_defs.h: Mention 64-bit
architectures in comment.
* src/atomic_ops/sysdeps/msftc/x86_64.h
[!AO_USE_INTERLOCKED_INTRINSICS] (AO_USE_INTERLOCKED_INTRINSICS):
Define (before include common32_defs.h).
Diffstat (limited to 'src')
-rw-r--r-- | src/atomic_ops/sysdeps/msftc/common32_defs.h | 2 | ||||
-rw-r--r-- | src/atomic_ops/sysdeps/msftc/x86_64.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/msftc/common32_defs.h b/src/atomic_ops/sysdeps/msftc/common32_defs.h index 1644ab0..8745483 100644 --- a/src/atomic_ops/sysdeps/msftc/common32_defs.h +++ b/src/atomic_ops/sysdeps/msftc/common32_defs.h @@ -22,7 +22,7 @@ */ /* This file contains AO primitives based on VC++ built-in intrinsic */ -/* functions commonly available across 32-bit architectures. */ +/* functions commonly available across 32- and 64-bit architectures. */ /* This file should be included from arch-specific header files. */ /* Define AO_USE_INTERLOCKED_INTRINSICS if _Interlocked primitives */ diff --git a/src/atomic_ops/sysdeps/msftc/x86_64.h b/src/atomic_ops/sysdeps/msftc/x86_64.h index d620179..aaf1d0c 100644 --- a/src/atomic_ops/sysdeps/msftc/x86_64.h +++ b/src/atomic_ops/sysdeps/msftc/x86_64.h @@ -42,6 +42,9 @@ /* CAS is always available */ # define AO_ASSUME_WINDOWS98 #endif +#ifndef AO_USE_INTERLOCKED_INTRINSICS +# define AO_USE_INTERLOCKED_INTRINSICS +#endif #include "common32_defs.h" #ifdef AO_ASM_X64_AVAILABLE |