date and time created 82/12/15 15:33:43 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 16 Dec 1982 07:33:43 +0000 (23:33 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 16 Dec 1982 07:33:43 +0000 (23:33 -0800)
SCCS-vsn: lib/libc/vax/net/ntohs.s 4.1

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

diff --git a/usr/src/lib/libc/vax/net/ntohs.s b/usr/src/lib/libc/vax/net/ntohs.s
new file mode 100644 (file)
index 0000000..8b1e30d
--- /dev/null
@@ -0,0 +1,10 @@
+/* @(#)ntohs.s 4.1 %G% */
+/* hostorder = ntohs(netorder) */
+
+#include "DEFS.h"
+
+ENTRY(ntohs)
+       rotl    $8,4(ap),r0
+       movb    5(ap),r0
+       movzwl  r0,r0
+       ret