mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix broken Android compilation with updated xxHash
This commit is contained in:
parent
d8f031294a
commit
fbd1ad1a5a
|
@ -1,5 +1,5 @@
|
||||||
#include "CRC.h"
|
#include "CRC.h"
|
||||||
#include "xxHash/xxhash.h"
|
#include "xxHash/xxh3.h"
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
|
|
||||||
#define CRC32_POLYNOMIAL 0x04C11DB7
|
#define CRC32_POLYNOMIAL 0x04C11DB7
|
||||||
|
@ -49,16 +49,10 @@ u32 CRC_Calculate_Strict(u32 crc, const void *buffer, u32 count) {
|
||||||
#define PRIME32_4 668265263U
|
#define PRIME32_4 668265263U
|
||||||
#define PRIME32_5 374761393U
|
#define PRIME32_5 374761393U
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
u64 ReliableHash32NEON(const void *input, size_t len, u64 seed) {
|
||||||
# define XXH_rotl32(x,r) _rotl(x,r)
|
|
||||||
#else
|
|
||||||
# define XXH_rotl32(x, r) ((x << r) | (x >> (32 - r)))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
u32 ReliableHash32NEON(const void *input, size_t len, u32 seed) {
|
|
||||||
if (((uintptr_t) input & 3) != 0) {
|
if (((uintptr_t) input & 3) != 0) {
|
||||||
// Cannot handle misaligned data. Fall back to XXH32.
|
// Cannot handle misaligned data. Fall back to XXH32.
|
||||||
return XXH32(input, len, seed);
|
return XXH3_64bits_withSeed(input, len, seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
const u8 *p = (const u8 *) input;
|
const u8 *p = (const u8 *) input;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user