#ifndef SANITIZER_ATOMIC_CLANG_H
#define SANITIZER_ATOMIC_CLANG_H
namespace __sanitizer {
inline void atomic_signal_fence(memory_order mo) { … }
inline void atomic_thread_fence(memory_order mo) { … }
inline void proc_yield(int cnt) { … }
template <typename T>
inline typename T::Type atomic_load(const volatile T *a, memory_order mo) { … }
template <typename T>
inline void atomic_store(volatile T *a, typename T::Type v, memory_order mo) { … }
template <typename T>
inline typename T::Type atomic_fetch_add(volatile T *a, typename T::Type v,
memory_order mo) { … }
template <typename T>
inline typename T::Type atomic_fetch_sub(volatile T *a, typename T::Type v,
memory_order mo) { … }
template <typename T>
inline typename T::Type atomic_exchange(volatile T *a, typename T::Type v,
memory_order mo) { … }
template <typename T>
inline bool atomic_compare_exchange_strong(volatile T *a, typename T::Type *cmp,
typename T::Type xchg,
memory_order mo) { … }
template <typename T>
inline bool atomic_compare_exchange_weak(volatile T *a, typename T::Type *cmp,
typename T::Type xchg,
memory_order mo) { … }
}
#undef ATOMIC_ORDER
#endif