1570af302Sopenharmony_ci#define a_cas a_cas 2570af302Sopenharmony_cistatic inline int a_cas(volatile int *p, int t, int s) 3570af302Sopenharmony_ci{ 4570af302Sopenharmony_ci __asm__ __volatile__ ( 5570af302Sopenharmony_ci "cas.l %0, %2, (%1)" 6570af302Sopenharmony_ci : "+d"(t) : "a"(p), "d"(s) : "memory", "cc"); 7570af302Sopenharmony_ci return t; 8570af302Sopenharmony_ci} 9