Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 476834 | Differences between
and this patch

Collapse All | Expand All

(-)a/lib/direct/atomic.h (-3 / +3 lines)
Lines 191-199 static inline int _D__atomic_cmpxchg(volatile int *ptr, int old, int _new) Link Here
191
191
192
	do {
192
	do {
193
		__asm__ __volatile__("@ atomic_cmpxchg\n"
193
		__asm__ __volatile__("@ atomic_cmpxchg\n"
194
		"movs	%0, #0\n"
194
		"ldrex	%1, [%2]\n"
195
		"ldrex	%1, [%2]\n"
195
		"mov	%0, #0\n"
196
		"cmp	%1, %3\n"
196
		"teq	%1, %3\n"
197
		"it	eq\n"
197
		"strexeq %0, %4, [%2]\n"
198
		"strexeq %0, %4, [%2]\n"
198
		    : "=&r" (res), "=&r" (oldval)
199
		    : "=&r" (res), "=&r" (oldval)
199
		    : "r" (ptr), "Ir" (old), "r" (_new)
200
		    : "r" (ptr), "Ir" (old), "r" (_new)
200
- 

Return to bug 476834