diff options
Diffstat (limited to 'include/benoit/d/arch.hh')
-rw-r--r-- | include/benoit/d/arch.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/benoit/d/arch.hh b/include/benoit/d/arch.hh new file mode 100644 index 0000000..71d8feb --- /dev/null +++ b/include/benoit/d/arch.hh @@ -0,0 +1,18 @@ +# pragma once +# include <benoit/t/arch.hh> +namespace benoit { + namespace d { + benoit::t::arch constexpr arch = +# if defined(__aarch64__) + benoit::t::arch::aarch64; +# elif (defined(_M_AMD64) || defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(x86_64__)) + benoit::t::arch::amd64; +# elif (defined(_IA64) defined(_M_IA64) || defined(__IA64__) || defined(__ia64__) || defined(__itanium__)) + benoit::t::arch::ia64; +# elif (defined(_ARCH_PPC64) || defined(__powerpc64__) || defined(__PPC64__) || defined(__ppc64__)) + benoit::t::arch::ppc64; +# else + benoit::t::arch::unknown; +# endif + } +} |