Author: biurrun Date: Thu Nov 19 14:18:33 2009 New Revision: 1705 Log: hton64/ntoh64 are not used anywhere, remove the corresponding macros. Furthermore, all the #ifdefs employed to select the correct macro version depending on CPU byte order are wrong and useless. Modified: trunk/libpisa/global.h Modified: trunk/libpisa/global.h ============================================================================== --- trunk/libpisa/global.h Thu Nov 19 13:26:52 2009 (r1704) +++ trunk/libpisa/global.h Thu Nov 19 14:18:33 2009 (r1705) @@ -108,29 +108,6 @@ #define MAX_PAYLOAD_BUFFER 1432 /** - * __BYTE_ORDER is not available on _APPLE_ - */ -#ifdef __APPLE__ - #ifndef __BYTE_ORDER - #define __BYTE_ORDER BYTE_ORDER - #endif - #ifndef __BIG_ENDIAN - #define __BIG_ENDIAN BIG_ENDIAN - #endif -#endif - - -#if __BYTE_ORDER == __BIG_ENDIAN - #define hton64(i) (i) - #define ntoh64(i) (i) -#else - #ifndef hton64 - #define hton64(i) ( ((__u64)(htonl((i) & 0xffffffff)) << 32) | htonl(((i) >> 32) & 0xffffffff ) ) - #define ntoh64(i) hton64 - #endif -#endif - -/** * Force the inlining of a function. There are 2 consequences: * 1. inlining even at zero optimization level * 2. make the compiler stop spitting warnings related to code size