diff options
author | Mattias Andrée <maandree@kth.se> | 2024-09-15 11:45:32 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-09-15 11:45:32 +0200 |
commit | 6bc1d2776832ce2f96d4d193d4084098a116f683 (patch) | |
tree | 391cc81b2aa8c65ada7e66572519936c5032e6c2 | |
parent | Organise files (diff) | |
download | libkeccak-6bc1d2776832ce2f96d4d193d4084098a116f683.tar.gz libkeccak-6bc1d2776832ce2f96d4d193d4084098a116f683.tar.bz2 libkeccak-6bc1d2776832ce2f96d4d193d4084098a116f683.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | benchmark.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/benchmark.c b/benchmark.c index 488d892..eec02ba 100644 --- a/benchmark.c +++ b/benchmark.c @@ -16,14 +16,21 @@ #endif +#ifndef L +# define L 6 +#endif +#ifndef STATE +# define STATE (25 << (L)) +#endif + #ifndef BITRATE -# define BITRATE 1024 +# define BITRATE (16 << (L)) #endif #ifndef CAPACITY -# define CAPACITY 576 +# define CAPACITY ((STATE) - (BITRATE)) #endif #ifndef OUTPUT -# define OUTPUT 512 +# define OUTPUT ((BITRATE) / 2) #endif #ifndef UPDATE_RUNS |