diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-07-22 02:26:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-07-22 02:26:07 +0000 |
commit | dfef32ef796146357481a6f7949ba900108c655e (patch) | |
tree | 56ad420b4ee2209afd53ff1a5589962f9b32f728 /linuxthreads/spinlock.h | |
parent | f74e61f05626503cc5e469b940bdb149c98d7ab8 (diff) | |
download | glibc-dfef32ef796146357481a6f7949ba900108c655e.tar.gz glibc-dfef32ef796146357481a6f7949ba900108c655e.tar.xz glibc-dfef32ef796146357481a6f7949ba900108c655e.zip |
Update.
2000-07-21 Ulrich Drepper <drepper@redhat.com> * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification. Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
Diffstat (limited to 'linuxthreads/spinlock.h')
-rw-r--r-- | linuxthreads/spinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads/spinlock.h b/linuxthreads/spinlock.h index 703b72d65e..6d3d3433f9 100644 --- a/linuxthreads/spinlock.h +++ b/linuxthreads/spinlock.h @@ -48,6 +48,10 @@ static inline int compare_and_swap(long * ptr, long oldval, long newval, #elif defined(HAS_COMPARE_AND_SWAP) +#ifdef IMPLEMENT_TAS_WITH_CAS +#define testandset(p) !__compare_and_swap(p, 0, 1) +#endif + #ifdef HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS static inline int |