From 58d1abbc274a550da5a1c34c536e2d4a364c1920 Mon Sep 17 00:00:00 2001 From: "Victor A. P. Magri" <50467563+victorapm@users.noreply.github.com> Date: Wed, 5 Apr 2023 16:33:24 -0400 Subject: [PATCH] Change variables to unsigned long long int (#874) Solves GitHub issue #870 --- src/utilities/_hypre_utilities.h | 8 ++++---- src/utilities/hopscotch_hash.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utilities/_hypre_utilities.h b/src/utilities/_hypre_utilities.h index 84fc197d9..763cbdb96 100644 --- a/src/utilities/_hypre_utilities.h +++ b/src/utilities/_hypre_utilities.h @@ -2307,9 +2307,9 @@ first_lsb_bit_indx( hypre_uint x ) static inline HYPRE_BigInt hypre_BigHash( HYPRE_BigInt input ) { - hypre_ulongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); + hypre_ulonglongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); - hypre_ulongint k1 = input; + hypre_ulonglongint k1 = input; k1 *= HYPRE_XXH_PRIME64_2; k1 = HYPRE_XXH_rotl64(k1, 31); k1 *= HYPRE_XXH_PRIME64_1; @@ -2361,9 +2361,9 @@ hypre_BigHash(HYPRE_Int input) static inline HYPRE_Int hypre_Hash(HYPRE_Int input) { - hypre_ulongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); + hypre_ulonglongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); - hypre_ulongint k1 = input; + hypre_ulonglongint k1 = input; k1 *= HYPRE_XXH_PRIME64_2; k1 = HYPRE_XXH_rotl64(k1, 31); k1 *= HYPRE_XXH_PRIME64_1; diff --git a/src/utilities/hopscotch_hash.h b/src/utilities/hopscotch_hash.h index b5bfbff59..b9ba83d7a 100644 --- a/src/utilities/hopscotch_hash.h +++ b/src/utilities/hopscotch_hash.h @@ -209,9 +209,9 @@ first_lsb_bit_indx( hypre_uint x ) static inline HYPRE_BigInt hypre_BigHash( HYPRE_BigInt input ) { - hypre_ulongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); + hypre_ulonglongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); - hypre_ulongint k1 = input; + hypre_ulonglongint k1 = input; k1 *= HYPRE_XXH_PRIME64_2; k1 = HYPRE_XXH_rotl64(k1, 31); k1 *= HYPRE_XXH_PRIME64_1; @@ -263,9 +263,9 @@ hypre_BigHash(HYPRE_Int input) static inline HYPRE_Int hypre_Hash(HYPRE_Int input) { - hypre_ulongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); + hypre_ulonglongint h64 = HYPRE_XXH_PRIME64_5 + sizeof(input); - hypre_ulongint k1 = input; + hypre_ulonglongint k1 = input; k1 *= HYPRE_XXH_PRIME64_2; k1 = HYPRE_XXH_rotl64(k1, 31); k1 *= HYPRE_XXH_PRIME64_1;