[Mesa-dev] [PATCH 2/2] util/u_atomic: remove unnecessaty __atomic functions
Grazvydas Ignotas
notasas at gmail.com
Mon Sep 18 19:28:45 UTC 2017
They are now provided by -latomic, which should be linked as needed
since previous commit.
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
---
src/util/u_atomic.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c
index b32527f..e4bffa8 100644
--- a/src/util/u_atomic.c
+++ b/src/util/u_atomic.c
@@ -72,18 +72,6 @@ __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t newval)
pthread_mutex_unlock(&sync_mutex);
return r;
}
-WEAK uint64_t
-__atomic_fetch_add_8(uint64_t *ptr, uint64_t val, int memorder)
-{
- return __sync_add_and_fetch(ptr, val);
-}
-
-WEAK uint64_t
-__atomic_fetch_sub_8(uint64_t *ptr, uint64_t val, int memorder)
-{
- return __sync_sub_and_fetch(ptr, val);
-}
-
#endif
--
2.7.4
More information about the mesa-dev
mailing list