sm64coopdx/include/platform_info.h

11 lines
283 B
C
Raw Normal View History

2019-11-03 19:36:27 +00:00
#ifndef PLATFORM_INFO_H
#define PLATFORM_INFO_H
#include <stdint.h>
#define IS_64_BIT (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFU)
#define IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#define DOUBLE_SIZE_ON_64_BIT(size) ((size) * (sizeof(void *) / 4))
2020-06-02 16:44:34 +00:00
#endif // PLATFORM_INFO_H