CpuArch.h 429 B

12345678910111213141516171819
  1. /* CpuArch.h */
  2. #ifndef __CPUARCH_H
  3. #define __CPUARCH_H
  4. /*
  5. LITTLE_ENDIAN_UNALIGN means:
  6. 1) CPU is LITTLE_ENDIAN
  7. 2) it's allowed to make unaligned memory accesses
  8. if LITTLE_ENDIAN_UNALIGN is not defined, it means that we don't know
  9. about these properties of platform.
  10. */
  11. #if defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64) || defined(__i386__) || defined(__x86_64__)
  12. #define LITTLE_ENDIAN_UNALIGN
  13. #endif
  14. #endif