sizeof(T) return as byte. But previous hash function use it like bit.
Change-Id: Ia4378a0bb40aca4928a127be4e2adc6db1b84e7f
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
// Make unordered hash value by location.
// Note : This hash function varified for locations only under < 20.
std::size_t salt = attr.location + 1;
- hash += salt << (sizeof(std::size_t) * 3 / 4);
+ hash += salt << (sizeof(std::size_t) * 6);
salt *= salt;
salt ^= attr.location;
- hash += salt << (sizeof(std::size_t) / 2);
+ hash += salt << (sizeof(std::size_t) * 4);
salt *= salt;
hash += salt;
}