date and time created 90/04/23 20:01:40 by william
authorWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Tue, 24 Apr 1990 11:01:40 +0000 (03:01 -0800)
committerWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Tue, 24 Apr 1990 11:01:40 +0000 (03:01 -0800)
SCCS-vsn: lib/libc/i386/net/ntohs.s 5.1

usr/src/lib/libc/i386/net/ntohs.s [new file with mode: 0644]

diff --git a/usr/src/lib/libc/i386/net/ntohs.s b/usr/src/lib/libc/i386/net/ntohs.s
new file mode 100644 (file)
index 0000000..6982d01
--- /dev/null
@@ -0,0 +1,22 @@
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * William Jolitz.
+ *
+ * %sccs.include.redist.c%
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+       .asciz "@(#)ntohs.s     5.1 (Berkeley) %G%"
+#endif /* LIBC_SCCS and not lint */
+
+/* hostorder = ntohs(netorder) */
+
+#include "DEFS.h"
+
+ENTRY(ntohs)
+       movzwl  4(sp),%eax
+       xchg    %al,%ah
+       ret