diff options
author | Mattias Andrée <maandree@kth.se> | 2024-09-11 21:54:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-09-11 21:54:30 +0200 |
commit | c966c39d9c0352ccb48469f68fb57c1d13dce4c7 (patch) | |
tree | 35ef69fea2533d979042c5d25e8ddb419f74b56c /libhashsum_init_sha2_hasher.c | |
parent | m doc (diff) | |
download | libhashsum-c966c39d9c0352ccb48469f68fb57c1d13dce4c7.tar.gz libhashsum-c966c39d9c0352ccb48469f68fb57c1d13dce4c7.tar.bz2 libhashsum-c966c39d9c0352ccb48469f68fb57c1d13dce4c7.tar.xz |
Add relative_performance
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libhashsum_init_sha2_hasher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhashsum_init_sha2_hasher.c b/libhashsum_init_sha2_hasher.c index e6aab61..dc9d0f2 100644 --- a/libhashsum_init_sha2_hasher.c +++ b/libhashsum_init_sha2_hasher.c @@ -97,6 +97,7 @@ libhashsum_init_sha2_hasher(struct libhashsum_hasher *this, unsigned algobits, s this->standard_partial_byte_input_encoding = LIBHASHSUM_LEAST_SIGNIFICANT; this->standard_partial_byte_output_encoding = LIBHASHSUM_UNSUPPORTED; this->hash_excess_bits = 0; + this->relative_performance = (algobits == 32U ? 277891737809888154ULL : 32055903736688859ULL); this->process = &process; this->finalise_const = &finalise_const; this->finalise = &finalise; |