(compare_and_swap): Return result.
authorUlrich Drepper <drepper@redhat.com>
Mon, 29 May 2000 00:59:18 +0000 (00:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 29 May 2000 00:59:18 +0000 (00:59 +0000)
sysdeps/arm/atomicity.h

index 01bd64e..c1f3b03 100644 (file)
@@ -81,6 +81,7 @@ compare_and_swap (volatile long int *p, long int oldval, long int newval)
           : "=&r" (result), "=&r" (tmp)
           : "r" (p), "r" (newval), "r" (oldval)
           : "cc", "memory");
+  return result;
 }
 
 #endif /* atomicity.h */