From 38c676f5591b53f34eb96eb1772bb6165763263d Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Fri, 29 Mar 2019 06:57:23 +0100 Subject: bitsliced-tea slightly more efficient with ternaries at some places --- test/monniaux/bitsliced-tea/bstea.c | 8 ++++---- test/monniaux/bitsliced-tea/bstea.h | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'test/monniaux/bitsliced-tea') diff --git a/test/monniaux/bitsliced-tea/bstea.c b/test/monniaux/bitsliced-tea/bstea.c index c20c169c..43e29d45 100644 --- a/test/monniaux/bitsliced-tea/bstea.c +++ b/test/monniaux/bitsliced-tea/bstea.c @@ -86,7 +86,7 @@ void encrypt(parallel_blocks_t v, const parallel_keys_t k, unsigned int r) * in the expansion of multiples of 32/golden-ratio, * or 32/(1+sqrt(5)/2 */ - ai = (sum & (1<