From 8359421d9047fea25006c2e34868a395d7a402be Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 24 Jan 2005 14:22:05 +0000 Subject: 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. --- crypto/aes/aes_locl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/aes/aes_locl.h') 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; -- cgit v1.2.3