mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-12 12:07:12 +08:00
(compare_and_swap): Return result.
This commit is contained in:
parent
dae4f11aac
commit
a07cbd1894
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user