From ac55a91fe94b78bde373169264e6b7a180c39f04 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 28 Nov 2013 04:31:25 +0100 Subject: Add a pclmulqdq ghash implementation --- cmake/arch.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmake/arch.cmake (limited to 'cmake/arch.cmake') diff --git a/cmake/arch.cmake b/cmake/arch.cmake new file mode 100644 index 0000000..fe488c2 --- /dev/null +++ b/cmake/arch.cmake @@ -0,0 +1,17 @@ +include(CheckCSourceCompiles) + +check_c_source_compiles(" +#ifndef __i386__ +#error not x86 +#endif + +int main() {return 0;} +" ARCH_X86) + +check_c_source_compiles(" +#ifndef __x86_64__ +#error not x86_64 +#endif + +int main() {return 0;} +" ARCH_X86_64) -- cgit v1.2.3