shithub: mc

ref: 74d91a0021de012908cfdb35fb61a1473a376130
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