From: William Nesheim Date: Tue, 18 Dec 1990 07:28:22 +0000 (-0800) Subject: syntax errors,wrong code X-Git-Tag: BSD-4_3_Reno-Snapshot-Development~37 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/28fce39581cc3619d285ca93cf0f30e887e22afa syntax errors,wrong code SCCS-vsn: lib/libc/i386/net/htons.s 5.2 SCCS-vsn: lib/libc/i386/net/ntohl.s 5.2 SCCS-vsn: lib/libc/i386/net/ntohs.s 5.2 SCCS-vsn: lib/libc/i386/net/htonl.s 5.3 --- diff --git a/usr/src/lib/libc/i386/net/htonl.s b/usr/src/lib/libc/i386/net/htonl.s index 24e3dfcac8..5f190976f9 100644 --- a/usr/src/lib/libc/i386/net/htonl.s +++ b/usr/src/lib/libc/i386/net/htonl.s @@ -9,16 +9,16 @@ */ #if defined(LIBC_SCCS) && !defined(lint) - .asciz "@(#)htonl.s 5.2 (Berkeley) %G%" + .asciz "@(#)htonl.s 5.3 (Berkeley) %G%" #endif /* LIBC_SCCS and not lint */ -/* hostorder = ntohl(netorder) */ +/* netorder = htonl(hostorder) */ #include "DEFS.h" -ENTRY(ntohl) - mov %eax,4(sp) - xchg %al,%ah - rol $16,%eax - xchg %al,%ah +ENTRY(htonl) + movl 4(%esp),%eax + xchgb %al,%ah + roll $16,%eax + xchgb %al,%ah ret diff --git a/usr/src/lib/libc/i386/net/htons.s b/usr/src/lib/libc/i386/net/htons.s index b833f4b7fb..cff8afdf67 100644 --- a/usr/src/lib/libc/i386/net/htons.s +++ b/usr/src/lib/libc/i386/net/htons.s @@ -9,7 +9,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) - .asciz "@(#)htons.s 5.1 (Berkeley) %G%" + .asciz "@(#)htons.s 5.2 (Berkeley) %G%" #endif /* LIBC_SCCS and not lint */ /* netorder = htons(hostorder) */ @@ -17,6 +17,6 @@ #include "DEFS.h" ENTRY(htons) - movzwl 4(sp),%eax - xchg %al,%ah + movzwl 4(%esp),%eax + xchgb %al,%ah ret diff --git a/usr/src/lib/libc/i386/net/ntohl.s b/usr/src/lib/libc/i386/net/ntohl.s index 774a236520..a79e595738 100644 --- a/usr/src/lib/libc/i386/net/ntohl.s +++ b/usr/src/lib/libc/i386/net/ntohl.s @@ -9,7 +9,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) - .asciz "@(#)ntohl.s 5.1 (Berkeley) %G%" + .asciz "@(#)ntohl.s 5.2 (Berkeley) %G%" #endif /* LIBC_SCCS and not lint */ /* hostorder = ntohl(netorder) */ @@ -17,8 +17,8 @@ #include "DEFS.h" ENTRY(ntohl) - mov %eax,4(sp) - xchg %al,%ah - rol $16,%eax - xchg %al,%ah + movl 4(%esp),%eax + xchgb %al,%ah + roll $16,%eax + xchgb %al,%ah ret diff --git a/usr/src/lib/libc/i386/net/ntohs.s b/usr/src/lib/libc/i386/net/ntohs.s index 6982d01256..45cb4b066c 100644 --- a/usr/src/lib/libc/i386/net/ntohs.s +++ b/usr/src/lib/libc/i386/net/ntohs.s @@ -9,7 +9,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) - .asciz "@(#)ntohs.s 5.1 (Berkeley) %G%" + .asciz "@(#)ntohs.s 5.2 (Berkeley) %G%" #endif /* LIBC_SCCS and not lint */ /* hostorder = ntohs(netorder) */ @@ -17,6 +17,6 @@ #include "DEFS.h" ENTRY(ntohs) - movzwl 4(sp),%eax - xchg %al,%ah + movzwl 4(%esp),%eax + xchgb %al,%ah ret