Module: vkd3d Branch: master Commit: bfbd29efe6e7e428adf94a1ffc7a14418c8e0937 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/bfbd29efe6e7e428adf94a1ffc7a14...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Apr 18 18:31:10 2024 +0200
vkd3d: Get rid of vkd3d_atomic_compare_exchange_pointer().
The only uses of this were remove by commit 3ca225980755032b385b36142d4cc44e78a987fd.
---
libs/vkd3d/vkd3d_private.h | 10 ---------- 1 file changed, 10 deletions(-)
diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index 77d95111..bf02a76f 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -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