shithub: mc

ref: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
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