Skip to content

Commit

Permalink
Merge pull request #631 from ellert/rhel7-ppc64le
Browse files Browse the repository at this point in the history
Fix compilation on RHEL 7 ppc64le (gcc 4.8)
  • Loading branch information
Cyan4973 committed Dec 1, 2021
2 parents 4b5076f + 15ce80f commit 56ac11e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
const void* XXH_RESTRICT secret)
{
/* presumed aligned */
unsigned long long* const xacc = (unsigned long long*) acc;
unsigned int* const xacc = (unsigned int*) acc;
xxh_u64x2 const* const xinput = (xxh_u64x2 const*) input; /* no alignment restriction */
xxh_u64x2 const* const xsecret = (xxh_u64x2 const*) secret; /* no alignment restriction */
xxh_u64x2 const v32 = { 32, 32 };
Expand All @@ -4145,7 +4145,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
/* product = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)shuffled & 0xFFFFFFFF); */
xxh_u64x2 const product = XXH_vec_mulo((xxh_u32x4)data_key, shuffled);
/* acc_vec = xacc[i]; */
xxh_u64x2 acc_vec = vec_xl(0, xacc + 2 * i);
xxh_u64x2 acc_vec = (xxh_u64x2)vec_xl(0, xacc + 4 * i);
acc_vec += product;

/* swap high and low halves */
Expand All @@ -4155,7 +4155,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
acc_vec += vec_xxpermdi(data_vec, data_vec, 2);
#endif
/* xacc[i] = acc_vec; */
vec_xst(acc_vec, 0, xacc + 2 * i);
vec_xst((xxh_u32x4)acc_vec, 0, xacc + 4 * i);
}
}

Expand Down

0 comments on commit 56ac11e

Please sign in to comment.