summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/endian.h
AgeCommit message (Collapse)Author
2001-03-02add #define __STRICT_ALIGNMENTJason Wright
1999-05-10Use symbolic define for BYTE_ORDER.Marc Espie
(don't forget that cpp is `lazy': #define A B #define B value #if A == value works, since A isn't extended before it's needed, by which time B is known)
1997-11-09New endian.h design. All architectures now use a common file for the bulkNiklas Hallqvist
part. Some ports can optimize the swap operations. This also means the general API is extended with swap16, swap32, htobe16, htobe32, betoh16, betoh32, htole16, htole32, letoh16 and letoh32.
1997-08-08Mostly sync to NetBSD-current 970804.Jason Downs
GENERIC currently compiles and runs; some devices (isp) are not complete and not yet enabled.
1997-06-25Sigh, Revert changes to endian.h - it was all confusion due to incorrectgrr
usage in new ip_* code, since fixed. Added usage notes to prevent future confusion in this regard.
1997-06-24The HTONS class of macros are defined as HTONS(x) <- (void) (x), whichgrr
really doesn't make a lot of sense if you're actually going to use these as some recent changes to netinet/* want to do. (x) or (u_int*_t) (x) would be the ticket, and since the rest of the ports settle for (x)... Note that powerpc has this same problem and needs to be fixed!
1997-04-04Define in_addr_t and in_port_t everywhere but use u_intXX_t forTodd C. Miller
htonl and friends.
1996-11-25htons et al. works on explicit 16- and 32-bit quantities and not theNiklas Hallqvist
machine dependent "short" and "long" integer. Correct and enhance manpage. Change all short and longs to u_int16_t and u_int32_t, respectively. OpenBSD RCSIds
1996-08-11netbsd port, now we merge our changes back inTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt