Optimize hash distribution
commit72ebb6d536170a068ad975790901b6f01a79c1cf
authorSven Strickroth <email@cs-ware.de>
Tue, 3 Jul 2018 17:30:35 +0000 (3 19:30 +0200)
committerSven Strickroth <email@cs-ware.de>
Tue, 3 Jul 2018 17:30:35 +0000 (3 19:30 +0200)
tree57c47cad287f6e15325315f11fe0b7519228b1ae
parent77b6cc502233710f4411f43b6aad8394f6bc4f7f
Optimize hash distribution

This is the same as:
return ((((((
((((((((size_t)k.m_hash[7] << 8) + k.m_hash[6]) << 8) + k.m_hash[5]) << 8) + k.m_hash[4]) << 8) +
(size_t)k.m_hash[3]) << 8) + k.m_hash[2]) << 8) + k.m_hash[1]) << 8) + k.m_hash[0];

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Git/GitHash.h
test/UnitTests/GitHashTest.cpp