date and time created 86/07/02 15:58:55 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 3 Jul 1986 06:58:55 +0000 (22:58 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 3 Jul 1986 06:58:55 +0000 (22:58 -0800)
SCCS-vsn: lib/libc/tahoe/net/htonl.s 1.1
SCCS-vsn: lib/libc/tahoe/net/htons.s 1.1

usr/src/lib/libc/tahoe/net/htonl.s [new file with mode: 0644]
usr/src/lib/libc/tahoe/net/htons.s [new file with mode: 0644]

diff --git a/usr/src/lib/libc/tahoe/net/htonl.s b/usr/src/lib/libc/tahoe/net/htonl.s
new file mode 100644 (file)
index 0000000..e347e5f
--- /dev/null
@@ -0,0 +1,11 @@
+#ifdef LIBC_SCCS
+       .asciz  "@(#)htonl.s    1.1 (Berkeley/CCI) %G%"
+#endif LIBC_SCCS
+
+/* netorder = htonl(hostorder) */
+
+#include "DEFS.h"
+
+ENTRY(htonl)
+       movl    4(fp),r0
+       ret
diff --git a/usr/src/lib/libc/tahoe/net/htons.s b/usr/src/lib/libc/tahoe/net/htons.s
new file mode 100644 (file)
index 0000000..f5dae29
--- /dev/null
@@ -0,0 +1,11 @@
+#ifdef LIBC_SCCS
+       .asciz  "@(#)htons.s    1.1 (Berkeley/CCI) %G%"
+#endif LIBC_SCCS
+
+/* hostorder = htons(netorder) */
+
+#include "DEFS.h"
+
+ENTRY(htons)
+       movzwl  6(fp),r0
+       ret