Source-Changes-HG archive

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

[src/netbsd-1-5]: src/lib/libc/rpc Pull up revision 1.26 (requested by bjh21):



details:   https://anonhg.NetBSD.org/src/rev/aaa2c47f88a1
branches:  netbsd-1-5
changeset: 490826:aaa2c47f88a1
user:      he <he%NetBSD.org@localhost>
date:      Sun Mar 11 21:16:24 2001 +0000

description:
Pull up revision 1.26 (requested by bjh21):
  Correct handling of XDR doubles on ARM platforms to cope with
  their odd byte ordering.

diffstat:

 lib/libc/rpc/xdr_float.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 9c0cc0e08354 -r aaa2c47f88a1 lib/libc/rpc/xdr_float.c
--- a/lib/libc/rpc/xdr_float.c  Sun Mar 11 21:12:51 2001 +0000
+++ b/lib/libc/rpc/xdr_float.c  Sun Mar 11 21:16:24 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xdr_float.c,v 1.21.4.2 2000/07/18 19:13:54 matt Exp $  */
+/*     $NetBSD: xdr_float.c,v 1.21.4.3 2001/03/11 21:16:24 he Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)xdr_float.c 1.12 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)xdr_float.c 2.1 88/07/29 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: xdr_float.c,v 1.21.4.2 2000/07/18 19:13:54 matt Exp $");
+__RCSID("$NetBSD: xdr_float.c,v 1.21.4.3 2001/03/11 21:16:24 he Exp $");
 #endif
 #endif
 
@@ -231,7 +231,7 @@
        case XDR_ENCODE:
 #ifdef IEEEFP
                i32p = (int32_t *)(void *)dp;
-#if BYTE_ORDER == BIG_ENDIAN
+#if (BYTE_ORDER == BIG_ENDIAN) || defined(__arm__)
                rv = XDR_PUTINT32(xdrs, i32p);
                if (!rv)
                        return (rv);
@@ -271,7 +271,7 @@
        case XDR_DECODE:
 #ifdef IEEEFP
                i32p = (int32_t *)(void *)dp;
-#if BYTE_ORDER == BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN || defined(__arm__)
                rv = XDR_GETINT32(xdrs, i32p);
                if (!rv)
                        return (rv);



Home | Main Index | Thread Index | Old Index