shithub: riscv

ref: b1e897ae44d25909ebc99992a32a93ac019b98b1
dir: /sys/src/libc/power64/atom.s/

View raw version
/* stubs */
TEXT ainc(SB), 1, $-4				/* long ainc(long *); */
TEXT adec(SB), 1, $-4				/* long adec(long*); */
/*
 * int cas(uint* p, int ov, int nv);
 */
TEXT cas(SB), 1, $-4
/*
 * int casv(u64int* p, u64int ov, u64int nv);
 */
TEXT casv(SB), 1, $-4
	BR	_trap
	RETURN
_trap:
	MOVD	$0, R0
	MOVD	0(R0), R0
	RETURN