Differences From Artifact [c91cb23822]:
- File
src/atomic.h
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 1145) [annotate] [blame] [check-ins using]
To Artifact [72942f053d]:
- File
src/atomic.h
— part of check-in
[636533772e]
at
2017-05-13 19:38:34
on branch trunk
— Do not use atomic_powerpc.h with Apple GCC
Apple GCC uses register 0 for "r" and there seems to be no way to avoid
this, while modern GCC does not seem to consider register 0 to be a GPR. (user: js, size: 1171) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
22 23 24 25 26 27 28 | # error No atomic operations available! #endif #if !defined(OF_HAVE_THREADS) # import "atomic_no_threads.h" #elif defined(OF_X86_64_ASM) || defined(OF_X86_ASM) # import "atomic_x86.h" | | | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # error No atomic operations available! #endif #if !defined(OF_HAVE_THREADS) # import "atomic_no_threads.h" #elif defined(OF_X86_64_ASM) || defined(OF_X86_ASM) # import "atomic_x86.h" #elif defined(OF_POWERPC_ASM) && !defined(__APPLE_CC__) # import "atomic_powerpc.h" #elif defined(OF_HAVE_ATOMIC_BUILTINS) # import "atomic_builtins.h" #elif defined(OF_HAVE_SYNC_BUILTINS) # import "atomic_sync_builtins.h" #elif defined(OF_HAVE_OSATOMIC) # import "atomic_osatomic.h" #else # error No atomic operations available! #endif |