EHS/include/ehs/system/Architecture.h

13 lines
327 B
C

#pragma once
#if defined(_M_AMD64) || defined(_M_X64) || defined(__x86_64__)
#define EHS_LITTLE_ENDIAN
#define EHS_ARCH_X64
#define EHS_64_BIT
#elif defined(_M_ARM64) || defined(__aarch64__)
#define EHS_LITTLE_ENDIAN
#define EHS_ARCH_ARM64
#define EHS_64_BIT
#else
#error Unsupported architecture.
#endif