Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/powerpc/gen Correct input and output of asm.



details:   https://anonhg.NetBSD.org/src/rev/2901d4f6f95a
branches:  trunk
changeset: 510276:2901d4f6f95a
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Fri May 25 12:28:12 2001 +0000

description:
Correct input and output of asm.

diffstat:

 lib/libc/arch/powerpc/gen/fabs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bde09c854c2a -r 2901d4f6f95a lib/libc/arch/powerpc/gen/fabs.c
--- a/lib/libc/arch/powerpc/gen/fabs.c  Fri May 25 12:17:45 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fabs.c  Fri May 25 12:28:12 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fabs.c,v 1.1 2001/05/25 12:17:45 simonb Exp $  */
+/*     $NetBSD: fabs.c,v 1.2 2001/05/25 12:28:12 tsubai Exp $  */
 
 #include <math.h>
 
@@ -9,7 +9,7 @@
        if (x < 0)
                x = -x;
 #else
-       __asm__ __volatile("fabs %1,%0" : "=f" (x) : "f" (x));
+       __asm__ __volatile("fabs %0,%1" : "=f"(x) : "f"(x));
 #endif
        return (x);
 }



Home | Main Index | Thread Index | Old Index