Plan 9 from Bell Labs’s /sys/src/ape/lib/ap/power64/atom.s

Copyright © 2021 Plan 9 Foundation
Distributed under the MIT License.
Download the Plan 9 distribution.


/* 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
	RET
_trap:
	MOVD	$0, R0
	MOVD	0(R0), R0
	RET

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.