From 104f19cdd623c310b70d51cb0cce105d13262608 Mon Sep 17 00:00:00 2001 From: miod <> Date: Tue, 8 Jul 2014 16:15:20 +0000 Subject: Define SMALL_REGISTER_BANK on arm and vax, for it generates faster code for these systems (vax being 30% faster!). (surprisingly, the prime candidate for SMALL_REGISTER_BANK, SuperH, runs actually slower in that case) --- src/lib/libcrypto/whrlpool/wp_block.c | 6 +++++- src/lib/libssl/src/crypto/whrlpool/wp_block.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/whrlpool/wp_block.c b/src/lib/libcrypto/whrlpool/wp_block.c index 7bbb7edc61..92d834e289 100644 --- a/src/lib/libcrypto/whrlpool/wp_block.c +++ b/src/lib/libcrypto/whrlpool/wp_block.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wp_block.c,v 1.7 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: wp_block.c,v 1.8 2014/07/08 16:15:20 miod Exp $ */ /** * The Whirlpool hashing function. * @@ -64,6 +64,10 @@ typedef unsigned long long u64; whirlpool_block_mmx(ctx->H.c,inp,num); return; \ } while (0) # endif +#elif defined(__arm__) +# define SMALL_REGISTER_BANK +#elif defined(__vax__) +# define SMALL_REGISTER_BANK #endif #undef ROTATE diff --git a/src/lib/libssl/src/crypto/whrlpool/wp_block.c b/src/lib/libssl/src/crypto/whrlpool/wp_block.c index 7bbb7edc61..92d834e289 100644 --- a/src/lib/libssl/src/crypto/whrlpool/wp_block.c +++ b/src/lib/libssl/src/crypto/whrlpool/wp_block.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wp_block.c,v 1.7 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: wp_block.c,v 1.8 2014/07/08 16:15:20 miod Exp $ */ /** * The Whirlpool hashing function. * @@ -64,6 +64,10 @@ typedef unsigned long long u64; whirlpool_block_mmx(ctx->H.c,inp,num); return; \ } while (0) # endif +#elif defined(__arm__) +# define SMALL_REGISTER_BANK +#elif defined(__vax__) +# define SMALL_REGISTER_BANK #endif #undef ROTATE -- cgit v1.2.3-55-g6feb