summaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/fpu/s_nearbyintl.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/fpu/s_nearbyintl.S')
-rw-r--r--sysdeps/x86_64/fpu/s_nearbyintl.S7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/x86_64/fpu/s_nearbyintl.S b/sysdeps/x86_64/fpu/s_nearbyintl.S
index 76d41bdd52..80508bdbee 100644
--- a/sysdeps/x86_64/fpu/s_nearbyintl.S
+++ b/sysdeps/x86_64/fpu/s_nearbyintl.S
@@ -4,15 +4,12 @@
*/
/* Adapted for use as nearbyint by Ulrich Drepper <drepper@cygnus.com>. */
+#include <libm-alias-ldouble.h>
#include <machine/asm.h>
ENTRY(__nearbyintl)
fldt 8(%rsp)
fnstenv -28(%rsp)
- movl -28(%rsp), %eax
- orl $0x20, %eax
- movl %eax, -32(%rsp)
- fldcw -32(%rsp)
frndint
fnstsw
andl $0x1, %eax
@@ -20,4 +17,4 @@ ENTRY(__nearbyintl)
fldenv -28(%rsp)
ret
END (__nearbyintl)
-weak_alias (__nearbyintl, nearbyintl)
+libm_alias_ldouble (__nearbyint, nearbyint)