shithub: mc

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

View raw version
.globl _math$fptrap
.globl math$fptrap
_math$fptrap:
math$fptrap:
	subq	$4,%rsp
	wait
	stmxcsr	(%rsp)
	movl	(%rsp),%eax
	andl	$~0x1f80,%eax
	testb	%dil,%dil
	jnz	.apply
	orl	$0x1f80,%eax
.apply:
	movl	%eax,(%rsp)
	ldmxcsr	(%rsp)
	addq	$4,%rsp
	ret