sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

platform_info.h (358B)


      1 #ifndef PLATFORM_INFO_H
      2 #define PLATFORM_INFO_H
      3 
      4 #ifdef TARGET_N64
      5 #define IS_64_BIT 0
      6 #define IS_BIG_ENDIAN 1
      7 #else
      8 #include <stdint.h>
      9 #define IS_64_BIT (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFU)
     10 #define IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
     11 #endif
     12 
     13 #define DOUBLE_SIZE_ON_64_BIT(size) ((size) * (sizeof(void *) / 4))
     14 
     15 #endif // PLATFORM_INFO_H