From 2b848242fe4f6c7023e86d7e916c73af30fb9cf0 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 27 Jan 2017 20:44:25 -0500 Subject: Add support for NEON in SIMD_4x32 Tested on qemu-aarch64 --- src/lib/utils/cpuid.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/lib/utils/cpuid.h') diff --git a/src/lib/utils/cpuid.h b/src/lib/utils/cpuid.h index 98b5e14ce..f618ac35c 100644 --- a/src/lib/utils/cpuid.h +++ b/src/lib/utils/cpuid.h @@ -79,6 +79,15 @@ class BOTAN_DLL CPUID return g_little_endian; } + static bool is_big_endian() + { + /* + * We do not support PDP endian, so the endian is + * always either big or little. + */ + return is_little_endian() == false; + } + enum CPUID_bits : uint64_t { #if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) // These values have no relation to cpuid bitfields @@ -261,7 +270,7 @@ class BOTAN_DLL CPUID /* * Don't call this function, use CPUID::has_xxx above - * It should have been private. + * It is only exposed for the tests. */ static bool has_cpuid_bit(CPUID_bits elem) { -- cgit v1.2.3