Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/x86_64/gen Return the right value for modf(). ...



details:   https://anonhg.NetBSD.org/src/rev/7aa4f99db64f
branches:  trunk
changeset: 550667:7aa4f99db64f
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Aug 16 21:45:50 2003 +0000

description:
Return the right value for modf(). Fixes PR 22503.

diffstat:

 lib/libc/arch/x86_64/gen/modf.S |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 7e176a17a032 -r 7aa4f99db64f lib/libc/arch/x86_64/gen/modf.S
--- a/lib/libc/arch/x86_64/gen/modf.S   Sat Aug 16 19:21:21 2003 +0000
+++ b/lib/libc/arch/x86_64/gen/modf.S   Sat Aug 16 21:45:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: modf.S,v 1.2 2003/08/07 16:42:36 agc Exp $     */
+/*     $NetBSD: modf.S,v 1.3 2003/08/16 21:45:50 fvdl Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -36,7 +36,7 @@
 
 #include <machine/asm.h>
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: modf.S,v 1.2 2003/08/07 16:42:36 agc Exp $")
+       RCSID("$NetBSD: modf.S,v 1.3 2003/08/16 21:45:50 fvdl Exp $")
 #endif
 
 /*
@@ -86,7 +86,8 @@
         */
        fldl    -24(%rbp)
        fsubl   -8(%rbp)
-       movsd   -8(%rbp),%xmm0
+       fstpl   -24(%rbp)
+       movsd   -24(%rbp),%xmm0
 
        leave
        ret



Home | Main Index | Thread Index | Old Index