Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/arch/arm/include Pull up revision 1.5 (requested by...
details: https://anonhg.NetBSD.org/src/rev/c9f1859715ba
branches: netbsd-1-6
changeset: 529391:c9f1859715ba
user: he <he%NetBSD.org@localhost>
date: Mon Nov 18 01:16:48 2002 +0000
description:
Pull up revision 1.5 (requested by thorpej in ticket #673):
Rename ``word'' -> 16 and ``long'' -> 32.
Replace __byte_swap_32_variable() with a C version that
generates nearly identical assembly.
diffstat:
sys/arch/arm/include/endian_machdep.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r fdd7e5f1f30b -r c9f1859715ba sys/arch/arm/include/endian_machdep.h
--- a/sys/arch/arm/include/endian_machdep.h Mon Nov 18 01:16:24 2002 +0000
+++ b/sys/arch/arm/include/endian_machdep.h Mon Nov 18 01:16:48 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: endian_machdep.h,v 1.3.20.1 2002/11/18 01:03:52 he Exp $ */
+/* $NetBSD: endian_machdep.h,v 1.3.20.2 2002/11/18 01:16:48 he Exp $ */
/* GCC predefines __ARMEB__ when building for big-endian ARM. */
#ifdef __ARMEB__
@@ -12,10 +12,10 @@
#include <arm/byte_swap.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
-#define ntohl(x) ((in_addr_t)__byte_swap_long((in_addr_t)(x)))
-#define ntohs(x) ((in_port_t)__byte_swap_word((in_port_t)(x)))
-#define htonl(x) ((in_addr_t)__byte_swap_long((in_addr_t)(x)))
-#define htons(x) ((in_port_t)__byte_swap_word((in_port_t)(x)))
+#define ntohl(x) ((in_addr_t)__byte_swap_32((in_addr_t)(x)))
+#define ntohs(x) ((in_port_t)__byte_swap_16((in_port_t)(x)))
+#define htonl(x) ((in_addr_t)__byte_swap_32((in_addr_t)(x)))
+#define htons(x) ((in_port_t)__byte_swap_16((in_port_t)(x)))
#endif
#endif
Home |
Main Index |
Thread Index |
Old Index