mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 01:55:33 +00:00
Remove unused ResetTestAndSet function
This commit is contained in:
parent
da44e58160
commit
9c48aaa7f2
|
@ -1531,10 +1531,6 @@ namespace BC7C
|
||||||
static uint32 FetchAndAdd(uint32 *x) {
|
static uint32 FetchAndAdd(uint32 *x) {
|
||||||
return InterlockedIncrement(x)-1;
|
return InterlockedIncrement(x)-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ResetTestAndSet(uint32 *x) {
|
|
||||||
*x = 0;
|
|
||||||
}
|
|
||||||
#elif defined HAS_GCC_ATOMICS
|
#elif defined HAS_GCC_ATOMICS
|
||||||
static uint32 TestAndSet(uint32 *x) {
|
static uint32 TestAndSet(uint32 *x) {
|
||||||
return __sync_lock_test_and_set(x, 1);
|
return __sync_lock_test_and_set(x, 1);
|
||||||
|
@ -1543,10 +1539,6 @@ namespace BC7C
|
||||||
static uint32 FetchAndAdd(uint32 *x) {
|
static uint32 FetchAndAdd(uint32 *x) {
|
||||||
return __sync_fetch_and_add(x, 1);
|
return __sync_fetch_and_add(x, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ResetTestAndSet(uint32 *x) {
|
|
||||||
__sync_lock_release(x);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Variables used for synchronization in threadsafe implementation.
|
// Variables used for synchronization in threadsafe implementation.
|
||||||
|
|
Loading…
Reference in a new issue