diff options
Diffstat (limited to 'test/monniaux')
-rw-r--r-- | test/monniaux/bitsliced-aes/bs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/monniaux/bitsliced-aes/bs.c b/test/monniaux/bitsliced-aes/bs.c index 04c155ea..f48faefa 100644 --- a/test/monniaux/bitsliced-aes/bs.c +++ b/test/monniaux/bitsliced-aes/bs.c @@ -389,8 +389,13 @@ void bs_transpose_dst(word_t * transpose, word_t * blocks) #ifndef UNROLL_TRANSPOSE /* DM experiments */ + /* The normal ternary operator costs us a lot! + from 10145951 to 7995063 */ +#if 1 +#define TERNARY_XY0(t, x) ((-((t) != 0)) & (x)) +#else #define TERNARY_XY0(t, x) (((t) != 0) ? (x) : (0)) - +#endif int j; for(j=0; j < WORD_SIZE; j++) { |