diff --git a/Utilities/GNU.h b/Utilities/GNU.h index d3ecaa2be0..2c05012fb0 100644 --- a/Utilities/GNU.h +++ b/Utilities/GNU.h @@ -78,44 +78,44 @@ int clock_gettime(int foo, struct timespec *ts); #endif /* __APPLE__ */ -template static inline typename std::enable_if::value, T>::type sync_val_compare_and_swap(volatile T* dest, T comp, T exch) +template static inline typename std::enable_if::value, T>::type sync_val_compare_and_swap(volatile T* dest, T2 comp, T2 exch) { return __sync_val_compare_and_swap(dest, comp, exch); } -template static inline typename std::enable_if::value, bool>::type sync_bool_compare_and_swap(volatile T* dest, T comp, T exch) +template static inline typename std::enable_if::value, bool>::type sync_bool_compare_and_swap(volatile T* dest, T2 comp, T2 exch) { return __sync_bool_compare_and_swap(dest, comp, exch); } -template static inline typename std::enable_if::value, T>::type sync_lock_test_and_set(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_lock_test_and_set(volatile T* dest, T2 value) { return __sync_lock_test_and_set(dest, value); } -template static inline typename std::enable_if::value, T>::type sync_fetch_and_add(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_fetch_and_add(volatile T* dest, T2 value) { - return __sync_lock_fetch_and_add(dest, value); + return __sync_fetch_and_add(dest, value); } -template static inline typename std::enable_if::value, T>::type sync_fetch_and_sub(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_fetch_and_sub(volatile T* dest, T2 value) { - return __sync_lock_fetch_and_sub(dest, value); + return __sync_fetch_and_sub(dest, value); } -template static inline typename std::enable_if::value, T>::type sync_fetch_and_or(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_fetch_and_or(volatile T* dest, T2 value) { - return __sync_lock_fetch_and_or(dest, value); + return __sync_fetch_and_or(dest, value); } -template static inline typename std::enable_if::value, T>::type sync_fetch_and_and(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_fetch_and_and(volatile T* dest, T2 value) { - return __sync_lock_fetch_and_and(dest, value); + return __sync_fetch_and_and(dest, value); } -template static inline typename std::enable_if::value, T>::type sync_fetch_and_xor(volatile T* dest, T value) +template static inline typename std::enable_if::value, T>::type sync_fetch_and_xor(volatile T* dest, T2 value) { - return __sync_lock_fetch_and_xor(dest, value); + return __sync_fetch_and_xor(dest, value); } #endif /* __GNUG__ */