Fix compilation without SSE 4.2

Fixes "'hash64' was not declared in this scope" on aarch64.
This commit is contained in:
Roman Tsisyk 2017-12-20 08:34:41 +03:00 committed by alexey-milovidov
parent fd260c31ba
commit 0e556c2b03

View File

@ -173,15 +173,7 @@ struct UInt256HashCRC32
#else
/// We do not need to use CRC32 on other platforms. NOTE This can be confusing.
struct UInt256HashCRC32
{
DefaultHash<UInt64> hash64;
size_t operator()(UInt256 x) const
{
/// TODO This is not optimal.
return hash64(hash64(hash64(hash64(x.a) ^ x.b) ^ x.c) ^ x.d);
}
};
struct UInt256HashCRC32 : public UInt256Hash {};
#endif
}