From: Grazvydas Ignotas Date: Mon, 18 Sep 2017 19:24:34 +0000 (+0300) Subject: util/u_atomic: remove unnecessaty __atomic functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16e884d9e34ffe2c50d182297028e52b06275fa1;p=mesa.git util/u_atomic: remove unnecessaty __atomic functions They are now provided by -latomic, which should be linked as needed since previous commit. Signed-off-by: Grazvydas Ignotas Reviewed-by: Matt Turner Reviewed-by: Emil Velikov --- diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c index b32527fe347..e4bffa8534e 100644 --- a/src/util/u_atomic.c +++ b/src/util/u_atomic.c @@ -74,16 +74,4 @@ __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t newval) 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