mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Fix
This commit is contained in:
parent
7037da80cb
commit
26e5a07905
2 changed files with 11 additions and 8 deletions
|
@ -93,27 +93,27 @@ template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>
|
|||
return __sync_lock_test_and_set(dest, value);
|
||||
}
|
||||
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_lock_fetch_and_add(volatile T* dest, T value)
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_fetch_and_add(volatile T* dest, T value)
|
||||
{
|
||||
return __sync_lock_fetch_and_add(dest, value);
|
||||
}
|
||||
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_lock_fetch_and_sub(volatile T* dest, T value)
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_fetch_and_sub(volatile T* dest, T value)
|
||||
{
|
||||
return __sync_lock_fetch_and_sub(dest, value);
|
||||
}
|
||||
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_lock_fetch_and_or(volatile T* dest, T value)
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_fetch_and_or(volatile T* dest, T value)
|
||||
{
|
||||
return __sync_lock_fetch_and_or(dest, value);
|
||||
}
|
||||
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_lock_fetch_and_and(volatile T* dest, T value)
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_fetch_and_and(volatile T* dest, T value)
|
||||
{
|
||||
return __sync_lock_fetch_and_and(dest, value);
|
||||
}
|
||||
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_lock_fetch_and_xor(volatile T* dest, T value)
|
||||
template<typename T> static inline typename std::enable_if<std::is_arithmetic<T>::value, T>::type sync_fetch_and_xor(volatile T* dest, T value)
|
||||
{
|
||||
return __sync_lock_fetch_and_xor(dest, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue