shithub: mc

ref: 690ab7aa8e6c56a4ae8a2bd5bce58d1df681234e
dir: /lib/math/round-impl+posixy-x64-sse4.s/

View raw version
.globl math$rn32
.globl _math$rn32
math$rn32:
_math$rn32:
	pushq	%rbp
	movq	%rsp, %rbp
	subq	$16, %rsp
	fnstcw	(%rsp)
	fnstcw	8(%rsp)
	andl	$0xf3ff, 8(%rsp)
	fldcw	8(%rsp)
	cvtss2si	%xmm0, %eax
	fldcw	(%rsp)
	leave
	ret

.globl math$rn64
.globl _math$rn64
math$rn64:
_math$rn64:
	pushq	%rbp
	movq	%rsp, %rbp
	subq	$16, %rsp
	fnstcw	(%rsp)
	fnstcw	8(%rsp)
	andl	$0xf3ff, 8(%rsp)
	fldcw	8(%rsp)
	cvtsd2si	%xmm0, %rax
	fldcw	(%rsp)
	leave
	ret