1 #pragma once 2 3 #define ARCH(arch) (defined(AK_ARCH_##arch) && AK_ARCH_##arch) 4 5 6 #ifdef __i386__ 7 # define AK_ARCH_I386 1 8 #endif 9 10 #ifdef __x86_64__ 11 # define AK_ARCH_X86_64 1 12 #endif 13 14 #ifdef __riscv 15 # define AK_ARCH_riscv 1 16 #endif 17 18 #ifdef __riscv64 19 # define AK_ARCH_riscv64 1 20 #endif