
28 Feb
2014
28 Feb
'14
4:49 p.m.
On Fri, Feb 28, 2014 at 8:00 PM, Peter Dimov
Does anyone know what is the earlier version of Clang that supports the __sync_* intrinsics?
I don't know what was the earliest one but you could use __has_builtin macro to check for its presence. You can also use __GCC_HAVE_SYNC_COMPARE_AND_SWAP_N macros (where N is the size of the arguments) which are defined when __sync_compare_and_swap is supported in hardware.