EHS/include/ehs/system/Architecture.h
karutoh 1a4a1ecd9c
Some checks failed
Build & Release / Linux-x86_64-Build (push) Successful in 40s
Build & Release / Linux-AARCH64-Build (push) Has been cancelled
First commit.
2024-01-31 22:28:19 -08:00

11 lines
277 B
C

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