aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/mdx_hash
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-26 16:46:31 -0400
committerJack Lloyd <[email protected]>2017-10-26 16:46:31 -0400
commit9bbca51d2c760db724136695837bc9c1d1a4f4b4 (patch)
treef54cbf3b8bbf562d3cd869e82bdfba39c047f66a /src/lib/hash/mdx_hash
parent92d1921a56ac121c0b29c06398909fdf37c316dd (diff)
Blake2b optimizations
Nothing major but does improve perf for large buffers from 910 MB/s to 970 MB/s on Skylake.
Diffstat (limited to 'src/lib/hash/mdx_hash')
-rw-r--r--src/lib/hash/mdx_hash/mdx_hash.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/hash/mdx_hash/mdx_hash.cpp b/src/lib/hash/mdx_hash/mdx_hash.cpp
index c2fb320ec..8c668874a 100644
--- a/src/lib/hash/mdx_hash/mdx_hash.cpp
+++ b/src/lib/hash/mdx_hash/mdx_hash.cpp
@@ -19,11 +19,12 @@ MDx_HashFunction::MDx_HashFunction(size_t block_len,
bool bit_end,
size_t cnt_size) :
m_buffer(block_len),
+ m_count(0),
+ m_position(0),
BIG_BYTE_ENDIAN(byte_end),
BIG_BIT_ENDIAN(bit_end),
COUNT_SIZE(cnt_size)
{
- m_count = m_position = 0;
}
/*