about summary refs log tree commit diff
path: root/nptl/atomic.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-05 06:56:56 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-05 06:56:56 +0000
commite3ec8904db846897ef72ead8490312bfe2bd29d4 (patch)
tree1672ee657a5b1afd75038299c7626b07e0801add /nptl/atomic.h
parent6f1cff95e7d5ff6fdfd9edfc46a7abd709842c16 (diff)
downloadglibc-e3ec8904db846897ef72ead8490312bfe2bd29d4.tar.gz
glibc-e3ec8904db846897ef72ead8490312bfe2bd29d4.tar.xz
glibc-e3ec8904db846897ef72ead8490312bfe2bd29d4.zip
Update.
	* atomic.h: Add missing atomic_ prefixes.
Diffstat (limited to 'nptl/atomic.h')
-rw-r--r--nptl/atomic.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/nptl/atomic.h b/nptl/atomic.h
index 0464705691..987424de11 100644
--- a/nptl/atomic.h
+++ b/nptl/atomic.h
@@ -45,7 +45,7 @@
 
 #ifndef atomic_compare_and_exchange_rel
 # define atomic_compare_and_exchange_rel(mem, oldval, newval) \
-  compare_and_exchange_acq (mem, oldval, newval)
+  atomic_compare_and_exchange_acq (mem, oldval, newval)
 #endif
 
 
@@ -57,14 +57,15 @@
 									      \
      do									      \
        __oldval = (*__memp);						      \
-     while (compare_and_exchange_acq (__memp, __oldval + __value, __oldval)); \
+     while (atomic_compare_and_exchange_acq (__memp, __oldval + __value,      \
+					     __oldval));		      \
 									      \
      __value; })
 #endif
 
 
 #ifndef atomic_add
-# define atomic_add(mem, value) (void) exchange_and_add (mem, value)
+# define atomic_add(mem, value) (void) atomic_exchange_and_add (mem, value)
 #endif
 
 
@@ -85,8 +86,9 @@
 	      {								      \
 		__typeof (*mem) __oldval = *__memp;			      \
 									      \
-		if (compare_and_exchange_acq (__memp, __oldval | 1 << bit,    \
-					      __oldval) == 0)		      \
+		if (atomic_compare_and_exchange_acq (__memp,		      \
+						     __oldval | 1 << bit,     \
+						     __oldval) == 0)	      \
 		  break;						      \
 	      }})
 #endif