shithub: mc

ref: 3d4d7c4ca9eb30d468d71c26f4b4588c800c9d1c
dir: /lib/math/ftrap-impl+plan9-x64.s/

View raw version
TEXT	math$fptrap(SB),$0
	SUBQ	$4,SP
	WAIT
	STMXCSR	(SP)
	MOVL	(SP),AX
	ANDL	$~0x1f80,AX
	TESTB	DI,DI
	JNZ	.apply
	ORL	$0x1f80,AX
.apply:
	MOVL	AX,(SP)
	LDMXCSR	(SP)
	ADDQ	$4,SP
	RET