Talk:c/atomic/atomic compare exchange

What is the default memory order for these?


 * The page says that default order for the first two versions is . Is that what you were asking about? Nate 07:33, 24 September 2012 (PDT)

These functions are *not* volatile, they are _Atomic. _Atomic types are intended to be layout-compatible with C++ std::atomic types, and may have more padding than the non-_Atomic-qualified variants.
 * I am not following your comment. The first argument to these functions, in C, is a pointer to a volatile-qualified _Atomic (7.17.7.4/1), so that they can accept addresses of both volatile and non-volatile _Atomic variables. --Cubbi (talk) 08:33, 30 September 2015 (PDT)