aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-tea/bstea_wordsize.h
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-30 12:54:34 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-30 12:54:34 +0100
commitb8a398d37d0c7dbc8068b0759f1fb3f9daa11a63 (patch)
tree0e8bdce3977ebbab37cab6232850d2fe7e470021 /test/monniaux/bitsliced-tea/bstea_wordsize.h
parentdb17026ded35bbe6dbc2212f38944c0aa908b1c9 (diff)
downloadcompcert-kvx-b8a398d37d0c7dbc8068b0759f1fb3f9daa11a63.tar.gz
compcert-kvx-b8a398d37d0c7dbc8068b0759f1fb3f9daa11a63.zip
bitsliced TEA from archived http://plaintext.crypto.lo.gy/article/378/untwisted-bit-sliced-tea-time
Diffstat (limited to 'test/monniaux/bitsliced-tea/bstea_wordsize.h')
-rw-r--r--test/monniaux/bitsliced-tea/bstea_wordsize.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/monniaux/bitsliced-tea/bstea_wordsize.h b/test/monniaux/bitsliced-tea/bstea_wordsize.h
new file mode 100644
index 00000000..5381e17c
--- /dev/null
+++ b/test/monniaux/bitsliced-tea/bstea_wordsize.h
@@ -0,0 +1,16 @@
+#ifndef __BSTEA_WORDSIZE_H
+#define __BSTEA_WORDSIZE_H
+
+/* Determine the wordsize from the preprocessor defines. */
+
+#if defined __x86_64__ || defined __amd64__ || defined __x86_64 || \
+ defined __amd64 || defined _M_X64 || defined __ia64__ || \
+ defined __ia64__ || defined __IA64__ || defined __ia64 || \
+ defined _M_IA64
+# define __BSTEA_WORDSIZE 64
+#else
+# define __BSTEA_WORDSIZE 32
+#endif
+
+
+#endif /* __BSTEA_WORDSIZE_H */