mirror of
https://github.com/amd/blis.git
synced 2026-07-16 08:42:21 +00:00
Detect the CPU architecture by compiler's predefined macros. Then, detect the CPU cores. Support detecting x86 and ARM architectures.
16 lines
203 B
C
16 lines
203 B
C
#if defined(__i386) || defined(_X86)
|
|
ARCH_X86
|
|
#endif
|
|
|
|
#if defined(__x86_64__) || defined(__amd64__)
|
|
ARCH_X86_64
|
|
#endif
|
|
|
|
#if defined(__arm__)
|
|
ARCH_ARM
|
|
#endif
|
|
|
|
#if defined(__aarch64__)
|
|
ARCH_AARCH64
|
|
#endif
|