use MIPSEB & MIPSEL instead of BYTE_ORDER
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Mon, 22 Feb 1993 05:41:22 +0000 (21:41 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Mon, 22 Feb 1993 05:41:22 +0000 (21:41 -0800)
SCCS-vsn: lib/libc/mips/string/bcmp.s 5.5
SCCS-vsn: lib/libc/mips/string/bcopy.s 5.6

usr/src/lib/libc/mips/string/bcmp.s
usr/src/lib/libc/mips/string/bcopy.s

index 78db04a..79027fd 100644 (file)
 #include <machine/machAsmDefs.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
 #include <machine/machAsmDefs.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       ASMSTR("@(#)bcmp.s      5.4 (Berkeley) %G%")
+       ASMSTR("@(#)bcmp.s      5.5 (Berkeley) %G%")
 #endif /* LIBC_SCCS and not lint */
 
 /* bcmp(s1, s2, n) */
 
 #endif /* LIBC_SCCS and not lint */
 
 /* bcmp(s1, s2, n) */
 
-#include <machine/endian.h>
-
-#if BYTE_ORDER == LITTLE_ENDIAN
+#ifdef MIPSEL
 #      define  LWHI    lwr
 #      define  LWLO    lwl
 #      define  SWHI    swr
 #      define  SWLO    swl
 #endif
 #      define  LWHI    lwr
 #      define  LWLO    lwl
 #      define  SWHI    swr
 #      define  SWLO    swl
 #endif
-#if BYTE_ORDER == BIG_ENDIAN
+#ifdef MIPSEB
 #      define  LWHI    lwl
 #      define  LWLO    lwr
 #      define  SWHI    swl
 #      define  LWHI    lwl
 #      define  LWLO    lwr
 #      define  SWHI    swl
index d0489ac..e41967f 100644 (file)
 #include <machine/machAsmDefs.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
 #include <machine/machAsmDefs.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       ASMSTR("@(#)bcopy.s     5.5 (Berkeley) %G%")
+       ASMSTR("@(#)bcopy.s     5.6 (Berkeley) %G%")
 #endif /* LIBC_SCCS and not lint */
 
 /* bcopy(s1, s2, n) */
 
 #endif /* LIBC_SCCS and not lint */
 
 /* bcopy(s1, s2, n) */
 
-#include <machine/endian.h>
-
-#if BYTE_ORDER == LITTLE_ENDIAN
+#ifdef MIPSEL
 #      define  LWHI    lwr
 #      define  LWLO    lwl
 #      define  SWHI    swr
 #      define  SWLO    swl
 #endif
 #      define  LWHI    lwr
 #      define  LWLO    lwl
 #      define  SWHI    swr
 #      define  SWLO    swl
 #endif
-#if BYTE_ORDER == BIG_ENDIAN
+#ifdef MIPSEB
 #      define  LWHI    lwl
 #      define  LWLO    lwr
 #      define  SWHI    swl
 #      define  LWHI    lwl
 #      define  LWLO    lwr
 #      define  SWHI    swl