summaryrefslogtreecommitdiff
path: root/lib/libc/arch/mips
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1999-06-02 10:06:59 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1999-06-02 10:06:59 +0000
commit69ffb3091acadb0b8212401957e029c6951e6ce0 (patch)
tree86e1022f6ff55bced200c90d5664c145c3d69e8a /lib/libc/arch/mips
parent5a10cb14397338e656b90c67b3e074b08a3a2627 (diff)
A couple of more __MIPSEX__
Diffstat (limited to 'lib/libc/arch/mips')
-rw-r--r--lib/libc/arch/mips/net/htonl.S6
-rw-r--r--lib/libc/arch/mips/net/htons.S6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/arch/mips/net/htonl.S b/lib/libc/arch/mips/net/htonl.S
index de2cd785632..50391fbe3f5 100644
--- a/lib/libc/arch/mips/net/htonl.S
+++ b/lib/libc/arch/mips/net/htonl.S
@@ -38,7 +38,7 @@
#if defined(LIBC_SCCS)
.text
- .asciz "$OpenBSD: htonl.S,v 1.4 1996/08/19 08:16:09 tholo Exp $"
+ .asciz "$OpenBSD: htonl.S,v 1.5 1999/06/02 10:06:58 pefo Exp $"
#endif /* LIBC_SCCS */
/*
@@ -48,7 +48,7 @@
ALEAF(ntohl)
NLEAF(htonl) # a0 = 0x11223344, return 0x44332211
.set reorder
-#ifdef MIPSEL
+#ifdef __MIPSEL__
srl v1, a0, 24 # v1 = 0x00000011
sll v0, a0, 24 # v0 = 0x44000000
or v0, v0, v1
@@ -59,7 +59,7 @@ NLEAF(htonl) # a0 = 0x11223344, return 0x44332211
and v1, v1, 0xff00 # v1 = 0x00002200
or v0, v0, v1
#else
-#ifdef MIPSEB
+#ifdef __MIPSEB__
move v0, a0
#else
ERROR
diff --git a/lib/libc/arch/mips/net/htons.S b/lib/libc/arch/mips/net/htons.S
index 0eca643d025..ea9ade5560b 100644
--- a/lib/libc/arch/mips/net/htons.S
+++ b/lib/libc/arch/mips/net/htons.S
@@ -38,7 +38,7 @@
#if defined(LIBC_SCCS)
.text
- .asciz "$OpenBSD: htons.S,v 1.4 1996/08/19 08:16:09 tholo Exp $"
+ .asciz "$OpenBSD: htons.S,v 1.5 1999/06/02 10:06:58 pefo Exp $"
#endif /* LIBC_SCCS */
/*
@@ -48,14 +48,14 @@
ALEAF(ntohs)
NLEAF(htons)
.set reorder
-#ifdef MIPSEL
+#ifdef __MIPSEL__
srl v0, a0, 8
and v0, v0, 0xff
sll v1, a0, 8
and v1, v1, 0xff00
or v0, v0, v1
#else
-#ifdef MIPSEB
+#ifdef __MIPSEB__
move v0, a0
#else
ERROR