2024-02-05 22:25:30 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(_M_AMD64) || defined(_M_X64) || defined(__x86_64__)
|
|
|
|
#define EHS_LITTLE_ENDIAN
|
|
|
|
#define EHS_ARCH_X64
|
2024-04-08 03:10:24 -07:00
|
|
|
#define EHS_64_BIT
|
2024-02-05 22:25:30 -08:00
|
|
|
#elif defined(_M_ARM64) || defined(__aarch64__)
|
2024-04-08 03:10:24 -07:00
|
|
|
#define EHS_LITTLE_ENDIAN
|
2024-02-05 22:25:30 -08:00
|
|
|
#define EHS_ARCH_ARM64
|
2024-04-08 03:10:24 -07:00
|
|
|
#define EHS_64_BIT
|
2024-02-05 22:25:30 -08:00
|
|
|
#else
|
|
|
|
#error Unsupported architecture.
|
|
|
|
#endif
|