diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-04-08 22:30:42 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-04-08 22:30:42 +0000 |
commit | b614770f1cfeead5d0639ceb07a51056854cbeb3 (patch) | |
tree | f696e3438802d20ab246d8e96e02f11712edc45e /lib/libm/arch/amd64/s_floorf.S | |
parent | d713073343b3f1e0d3b7aa7d9528f61a8ce62dd7 (diff) |
remove i386/x86_64 ifdefs. i386 lives @ i387. miod@ agrees
object code matches so this got to be oki
Diffstat (limited to 'lib/libm/arch/amd64/s_floorf.S')
-rw-r--r-- | lib/libm/arch/amd64/s_floorf.S | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/libm/arch/amd64/s_floorf.S b/lib/libm/arch/amd64/s_floorf.S index 4159469991f..66bef665dd0 100644 --- a/lib/libm/arch/amd64/s_floorf.S +++ b/lib/libm/arch/amd64/s_floorf.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_floorf.S,v 1.3 2007/04/20 21:12:31 martynas Exp $ */ +/* $OpenBSD: s_floorf.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(floorf) -#ifdef __i386__ - pushl %ebp - movl %esp,%ebp - subl $8,%esp - - fstcw -4(%ebp) /* store fpu control word */ - movw -4(%ebp),%dx - orw $0x0400,%dx /* round towards -oo */ - andw $0xf7ff,%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 movss %xmm0, -4(%rsp) fstcw -8(%rsp) movw -8(%rsp),%dx @@ -38,5 +19,4 @@ ENTRY(floorf) fldcw -8(%rsp) fstps -4(%rsp) movss -4(%rsp),%xmm0 -#endif ret |