Plan 9 from Bell Labs’s /usr/web/sources/nix/nix/sys/src/libthread/xincamd64.s

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


/*TEXT	xadd(SB),$0	/* long xadd(long *, long); */

/*	MOVL	i+8(FP),AX
/*	LOCK
/*	XADDL	AX, (RARG)
/*	RET
*/

TEXT	_xinc(SB),$0	/* void _xinc(long *); */

	LOCK; INCL	0(RARG)
	RET

TEXT	_xdec(SB),$0	/* long _xdec(long *); */

	MOVL	$0, AX
	MOVL	$1, BX
	LOCK; DECL	0(RARG)
	CMOVLNE	BX, AX
	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@9p.io.