littlend.h 370 B

12345678910111213141516171819202122232425
  1. #ifndef _littlend_h
  2. #define _littlend_h
  3. #if defined(__cplusplus)
  4. extern "C" {
  5. #endif
  6. #define invert2(x) (x)
  7. #define invert4(x) (x)
  8. #define lowByte(x) (unsigned char)x
  9. #define mid1Byte(x) (unsigned char)(x >> 8)
  10. #define mid2Byte(x) (unsigned char)(x >> 16)
  11. #define highByte(x) (unsigned char)(x >> 24)
  12. #define SWAPENDS 0
  13. #if defined(__cplusplus)
  14. }
  15. #endif
  16. #endif