diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-19 13:03:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-19 13:03:30 -0400 |
commit | 94252dd341a7c72b31db2614abdc74142ad80562 (patch) | |
tree | f74f0a9a342499aad036655d8d96f090ee73a338 /arch | |
parent | 7fdae458bd421046a300a69dcb32953ac9450136 (diff) | |
download | musl-94252dd341a7c72b31db2614abdc74142ad80562.tar.gz musl-94252dd341a7c72b31db2614abdc74142ad80562.tar.xz musl-94252dd341a7c72b31db2614abdc74142ad80562.zip |
remove cruft from microblaze atomic.h
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/atomic.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/microblaze/atomic.h b/arch/microblaze/atomic.h index 818bcc0d..90fcd8b6 100644 --- a/arch/microblaze/atomic.h +++ b/arch/microblaze/atomic.h @@ -22,19 +22,6 @@ static inline int a_ctz_64(uint64_t x) return a_ctz_l(y); } -static inline int a_cas_1(volatile int *p, int t, int s) -{ - register int tmp; - do { - __asm__ __volatile__ ("lwx %0, %1, r0" - : "=r"(tmp) : "r"(p) : "memory"); - if (tmp != t) return tmp; - __asm__ __volatile__ ("swx %2, %1, r0 ; addic %0, r0, 0" - : "=r"(tmp) : "r"(p), "r"(s) : "cc", "memory"); - } while (tmp); - return t; -} - static inline int a_cas(volatile int *p, int t, int s) { register int old, tmp; |