Displaying 1 result from an estimated 1 matches for "cxx_atom".
Did you mean:
r4xx_atom
2019 Dec 29
2
__c11_atomic builtins' input requirements
...rmat, size etc.? Is
it required that the destination argument be annotated as _Atomic like the
corresponding standard c11 functions require?
The following code in libcxx/include/config implies that the c11 atomic
builtins should be substituted for gcc atomic builtins if present:
#if __has_feature(cxx_atomic) || __has_extension(c_atomic) ||
__has_keyword(_Atomic)
# define _LIBCPP_HAS_C_ATOMIC_IMP
#elif defined(_LIBCPP_COMPILER_GCC)
# define _LIBCPP_HAS_GCC_ATOMIC_IMP
#endif
To implement atomic_ref, it might be cleaner to use the gcc builtins. By
doing so, we avoid depending on the internals of...