mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Get rid of vkd3d_atomic_compare_exchange_pointer().
The only uses of this were remove by commit 3ca225980755032b385b36142d4cc44e78a987fd.
This commit is contained in:
parent
2b6012df7d
commit
bfbd29efe6
Notes:
Alexandre Julliard
2024-04-25 00:15:41 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/829
@ -214,11 +214,6 @@ static inline unsigned int vkd3d_atomic_exchange(unsigned int volatile *x, unsig
|
||||
return InterlockedExchange((LONG volatile *)x, val);
|
||||
}
|
||||
|
||||
static inline bool vkd3d_atomic_compare_exchange_pointer(void * volatile *x, void *cmp, void *xchg)
|
||||
{
|
||||
return InterlockedCompareExchangePointer(x, xchg, cmp) == cmp;
|
||||
}
|
||||
|
||||
static inline void *vkd3d_atomic_exchange_pointer(void * volatile *x, void *val)
|
||||
{
|
||||
return InterlockedExchangePointer(x, val);
|
||||
@ -239,11 +234,6 @@ static inline bool vkd3d_atomic_compare_exchange(unsigned int volatile *x, unsig
|
||||
{
|
||||
return __sync_bool_compare_and_swap(x, cmp, xchg);
|
||||
}
|
||||
|
||||
static inline bool vkd3d_atomic_compare_exchange_pointer(void * volatile *x, void *cmp, void *xchg)
|
||||
{
|
||||
return __sync_bool_compare_and_swap(x, cmp, xchg);
|
||||
}
|
||||
# else
|
||||
# error "vkd3d_atomic_compare_exchange() not implemented for this platform"
|
||||
# endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user