summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/s_ceilf.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/arch/amd64/s_ceilf.S')
-rw-r--r--lib/libm/arch/amd64/s_ceilf.S22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/libm/arch/amd64/s_ceilf.S b/lib/libm/arch/amd64/s_ceilf.S
index 8d726046ecf..a02291eed29 100644
--- a/lib/libm/arch/amd64/s_ceilf.S
+++ b/lib/libm/arch/amd64/s_ceilf.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_ceilf.S,v 1.3 2005/08/02 11:17:31 espie Exp $ */
+/* $OpenBSD: s_ceilf.S,v 1.4 2009/04/08 22:30:41 martynas Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -7,25 +7,6 @@
#include <machine/asm.h>
ENTRY(ceilf)
-#ifdef __i386__
- pushl %ebp
- movl %esp,%ebp
- subl $8,%esp
-
- fstcw -4(%ebp) /* store fpu control word */
- movw -4(%ebp),%dx
- orw $0x0800,%dx /* round towards +oo */
- andw $0xfbff,%dx
- movw %dx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
-
- flds 8(%ebp); /* round */
- frndint
-
- fldcw -4(%ebp) /* restore original control word */
-
- leave
-#else
fstcw -8(%rsp)
movw -8(%rsp),%dx
orw $0x0800,%dx
@@ -38,5 +19,4 @@ ENTRY(ceilf)
fldcw -8(%rsp)
fstps -4(%rsp)
movss -4(%rsp),%xmm0
-#endif
ret