xref: /haiku/src/system/libroot/posix/musl/arch/m68k/atomic_arch.h (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
1 #define a_cas a_cas
2 static inline int a_cas(volatile int *p, int t, int s)
3 {
4 	__asm__ __volatile__ (
5 		"cas.l %0, %2, (%1)"
6 		: "+d"(t) : "a"(p), "d"(s) : "memory", "cc");
7 	return t;
8 }
9