summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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