sm64/include/platform_info.h

16 lines
339 B
C
Raw Normal View History

2019-11-03 14:36:27 -05:00
#ifndef PLATFORM_INFO_H
#define PLATFORM_INFO_H
2019-12-01 21:52:53 -05:00
#ifdef TARGET_N64
2019-11-03 14:36:27 -05:00
#define IS_64_BIT 0
#define IS_BIG_ENDIAN 1
#else
#include <stdint.h>
#define IS_64_BIT (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFU)
#define IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#endif
#define DOUBLE_SIZE_ON_64_BIT(size) ((size) * (sizeof(void *) / 4))
#endif