util/u_atomic: remove unnecessaty __atomic functions
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 18 Sep 2017 19:24:34 +0000 (22:24 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 22 Sep 2017 14:12:24 +0000 (17:12 +0300)
They are now provided by -latomic, which should be linked as needed
since previous commit.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/u_atomic.c

index b32527fe347dba14c41de7cd505e0057124ea349..e4bffa8534ea46a49975cece512fc981fca00eed 100644 (file)
@@ -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