mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-23 04:25:11 +00:00
10 lines
283 B
C
10 lines
283 B
C
#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))
|
|
|
|
#endif // PLATFORM_INFO_H
|