Make 'gb.hash' compile on non-64 bits architectures.

[GB.HASH]
* BUG: Make 'gb.hash' compile on non-64 bits architectures.
This commit is contained in:
Benoît Minisini 2022-09-20 15:06:35 +02:00
parent 7c42524ecd
commit 1c64c42ada

View file

@ -38,6 +38,13 @@
#define CONFIG_MD5_SMALL 0
#define CONFIG_SHA3_SMALL 0
#if !(ULONG_MAX > 0xffffffff)
static uint64_t FAST_FUNC bb_bswap_64(uint64_t x)
{
return bswap_64(x);
}
#endif
/* gcc 4.2.1 optimizes rotr64 better with inline than with macro
* (for rotX32, there is no difference). Why? My guess is that
* macro requires clever common subexpression elimination heuristics