summaryrefslogtreecommitdiffstats
path: root/crypto/aes/aes_locl.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-01-24 14:22:05 +0000
committerAndy Polyakov <appro@openssl.org>2005-01-24 14:22:05 +0000
commit8359421d9047fea25006c2e34868a395d7a402be (patch)
treec59cd656e6619874917a5b6072ac5c8d2db3532d /crypto/aes/aes_locl.h
parentefde5230f1d7bef47a1ee9e33d5bda05cc61ebce (diff)
Default to AES u32 being unsinged int and not long. This improves cache
locality on 64-bit platforms (and fixes IA64 assembler-empowered build:-). The choice is guarded by newly introduced AES_LONG macro, which needs to be defined only on 16-bit platforms which we don't support (not that I know of). Meaning that one could as well skip long option altogether.
Diffstat (limited to 'crypto/aes/aes_locl.h')
-rw-r--r--crypto/aes/aes_locl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/aes/aes_locl.h b/crypto/aes/aes_locl.h
index 4184729e34..183805a15a 100644
--- a/crypto/aes/aes_locl.h
+++ b/crypto/aes/aes_locl.h
@@ -71,7 +71,11 @@
# define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); }
#endif
+#ifdef AES_LONG
typedef unsigned long u32;
+#else
+typedef unsigned int u32;
+#endif
typedef unsigned short u16;
typedef unsigned char u8;