Differences From Artifact [f5eb774718]:
- File
src/atomic.h
— part of check-in
[7115c55ef0]
at
2016-07-31 23:04:07
on branch trunk
— Split atomic.h into multiple files
Having one file per implementation reduces the #ifdef hell and makes it
much more readable. (user: js, size: 1071) [annotate] [blame] [check-ins using]
To Artifact [f4bb0c606a]:
- File src/atomic.h — part of check-in [64edae4128] at 2016-07-31 23:41:28 on branch trunk — atomic.h: Add support for __atomic_* builtins (user: js, size: 1139) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #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) # import "atomic_powerpc.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 | > > | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #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) # 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 |