|
rdobuilder |
c973ae |
From 15ce80f9f2760609d8cc68cea76d3f3217ab70e1 Mon Sep 17 00:00:00 2001
|
|
rdobuilder |
c973ae |
From: Mattias Ellert <mattias.ellert@physics.uu.se>
|
|
rdobuilder |
c973ae |
Date: Tue, 30 Nov 2021 23:19:38 +0100
|
|
rdobuilder |
c973ae |
Subject: [PATCH] Fix compilation on RHEL 7 ppc64le (gcc 4.8)
|
|
rdobuilder |
c973ae |
|
|
rdobuilder |
c973ae |
---
|
|
rdobuilder |
c973ae |
xxhash.h | 6 +++---
|
|
rdobuilder |
c973ae |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
rdobuilder |
c973ae |
|
|
rdobuilder |
c973ae |
diff --git a/xxhash.h b/xxhash.h
|
|
rdobuilder |
c973ae |
index 08ab794..7850622 100644
|
|
rdobuilder |
c973ae |
--- a/xxhash.h
|
|
rdobuilder |
c973ae |
+++ b/xxhash.h
|
|
rdobuilder |
c973ae |
@@ -4129,7 +4129,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
|
|
rdobuilder |
c973ae |
const void* XXH_RESTRICT secret)
|
|
rdobuilder |
c973ae |
{
|
|
rdobuilder |
c973ae |
/* presumed aligned */
|
|
rdobuilder |
c973ae |
- unsigned long long* const xacc = (unsigned long long*) acc;
|
|
rdobuilder |
c973ae |
+ unsigned int* const xacc = (unsigned int*) acc;
|
|
rdobuilder |
c973ae |
xxh_u64x2 const* const xinput = (xxh_u64x2 const*) input; /* no alignment restriction */
|
|
rdobuilder |
c973ae |
xxh_u64x2 const* const xsecret = (xxh_u64x2 const*) secret; /* no alignment restriction */
|
|
rdobuilder |
c973ae |
xxh_u64x2 const v32 = { 32, 32 };
|
|
rdobuilder |
c973ae |
@@ -4145,7 +4145,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
|
|
rdobuilder |
c973ae |
/* product = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)shuffled & 0xFFFFFFFF); */
|
|
rdobuilder |
c973ae |
xxh_u64x2 const product = XXH_vec_mulo((xxh_u32x4)data_key, shuffled);
|
|
rdobuilder |
c973ae |
/* acc_vec = xacc[i]; */
|
|
rdobuilder |
c973ae |
- xxh_u64x2 acc_vec = vec_xl(0, xacc + 2 * i);
|
|
rdobuilder |
c973ae |
+ xxh_u64x2 acc_vec = (xxh_u64x2)vec_xl(0, xacc + 4 * i);
|
|
rdobuilder |
c973ae |
acc_vec += product;
|
|
rdobuilder |
c973ae |
|
|
rdobuilder |
c973ae |
/* swap high and low halves */
|
|
rdobuilder |
c973ae |
@@ -4155,7 +4155,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
|
|
rdobuilder |
c973ae |
acc_vec += vec_xxpermdi(data_vec, data_vec, 2);
|
|
rdobuilder |
c973ae |
#endif
|
|
rdobuilder |
c973ae |
/* xacc[i] = acc_vec; */
|
|
rdobuilder |
c973ae |
- vec_xst(acc_vec, 0, xacc + 2 * i);
|
|
rdobuilder |
c973ae |
+ vec_xst((xxh_u32x4)acc_vec, 0, xacc + 4 * i);
|
|
rdobuilder |
c973ae |
}
|
|
rdobuilder |
c973ae |
}
|
|
rdobuilder |
c973ae |
|
|
rdobuilder |
c973ae |
--
|
|
rdobuilder |
c973ae |
2.33.1
|
|
rdobuilder |
c973ae |
|