mirror of https://github.com/xemu-project/xemu.git
actually do the sse4.2 compile check for fast_hash
This commit is contained in:
parent
c47148e63d
commit
be5a78e918
|
@ -1478,7 +1478,7 @@ static uint64_t fnv_hash(const uint8_t *data, size_t len)
|
||||||
|
|
||||||
static uint64_t fast_hash(const uint8_t *data, size_t len, unsigned int samples)
|
static uint64_t fast_hash(const uint8_t *data, size_t len, unsigned int samples)
|
||||||
{
|
{
|
||||||
// #ifdef __SSE4_2__
|
#ifdef __SSE4_2__
|
||||||
uint64_t h[4] = {len, 0, 0, 0};
|
uint64_t h[4] = {len, 0, 0, 0};
|
||||||
assert(samples > 0);
|
assert(samples > 0);
|
||||||
|
|
||||||
|
@ -1507,9 +1507,9 @@ static uint64_t fast_hash(const uint8_t *data, size_t len, unsigned int samples)
|
||||||
h[2] = __builtin_ia32_crc32di(h[2], dp[step * 2]);
|
h[2] = __builtin_ia32_crc32di(h[2], dp[step * 2]);
|
||||||
|
|
||||||
return h[0] + (h[1] << 10) + (h[2] << 21) + (h[3] << 32);
|
return h[0] + (h[1] << 10) + (h[2] << 21) + (h[3] << 32);
|
||||||
// #else
|
#else
|
||||||
// return fnv_hash(data, len);
|
return fnv_hash(data, len);
|
||||||
// #endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void update_irq(NV2AState *d)
|
static void update_irq(NV2AState *d)
|
||||||
|
|
Loading…
Reference in New Issue