shithub: mc

ref: 7cd4f442cf238c5de486b54deb0bfd3a3f7a0516
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),%rax
	andl	$~0x1f80,%rax
	testb	%rdi,%rdi
	jnz	.apply
	orl	$0x1f80,%rax
.apply:
	movl	%rax,(rsp)
	ldmxcsr	(%rsp)
	addq	$4,%rsp
	ret