about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/s_nearbyintl.S
blob: fae4dac3e5f33899461522ffb815ce138724f524 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Public domain.
 */

#include <libm-alias-ldouble.h>
#include <machine/asm.h>

ENTRY(__nearbyintl)
	fldt	8(%rsp)
	fnstenv	-28(%rsp)
	frndint
	fnstsw
	andl	$0x1, %eax
	orl	%eax, -24(%rsp)
	fldenv	-28(%rsp)
	ret
END (__nearbyintl)
libm_alias_ldouble (__nearbyint, nearbyint)