summaryrefslogtreecommitdiffstats
path: root/cmake/arch.cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-28 04:31:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-28 04:31:25 +0100
commitac55a91fe94b78bde373169264e6b7a180c39f04 (patch)
tree33f9a38de1e7056d02ca61c82a41e604dabdf232 /cmake/arch.cmake
parentca49096f5d02e351b928b2fd584bd7ca0d5fcf1f (diff)
downloadfastd-ac55a91fe94b78bde373169264e6b7a180c39f04.tar
fastd-ac55a91fe94b78bde373169264e6b7a180c39f04.zip
Add a pclmulqdq ghash implementation
Diffstat (limited to 'cmake/arch.cmake')
-rw-r--r--cmake/arch.cmake17
1 files changed, 17 insertions, 0 deletions
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)