9b4c0e34d2
x86-64. Since there's no hardware available yet, this port is only known to run on the Simics simulator for at the moment, and as such uses the PC devices that it simulates for now. It will be developed more (and cleaned up) as the hardware becomes available.
15 lines
415 B
C
15 lines
415 B
C
/* $NetBSD: endian_machdep.h,v 1.1 2001/06/19 00:20:10 fvdl Exp $ */
|
|
|
|
#define _BYTE_ORDER _LITTLE_ENDIAN
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <machine/byte_swap.h>
|
|
|
|
#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)))
|
|
|
|
#endif
|