Advertising
advertising
related pastes to tag 'pdp-endian'
- 638327 - Hatty: c endian little-endian big-endian pdp-endian switch
-
- #if defined(__WIN32) || defined(__WIN32__) || defined(__WIN64) || \
- defined(__WIN64__)
- /* Windows doesnt have endian.h, and only runs on AMD64/Intel,
- * so it's little endian */
- #define ENDIAN(x) (x & 0xFF000000) | (x & 0x00FF0000) << 8 | \
- (x & 0x00000FF00) << 16 | (x & 0x0000000FF) << 24
- 637808 - Hatty: c endian little-endian big-endian pdp-endian switch
-
- #include <endian.h>
- /* Host byte order <-> Big Endian */
- #if __BYTEORDER == __BIG_ENDIAN
- #define ENDIAN(x) x
- #elif __BYTEORDER == __LITTLE_ENDIAN