mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 12:03:41 +01:00
Cleanup the hash() function copied from ia64
Fixes the compiler warning on x86-32. Signed-off-by: Arun Sharma <arun.sharma@google.com>
This commit is contained in:
parent
a5d0c1f8b7
commit
55fe524775
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ hash (unw_word_t ip)
|
|||
/* based on (sqrt(5)/2-1)*2^64 */
|
||||
# define magic ((unw_word_t) 0x9e3779b97f4a7c16ULL)
|
||||
|
||||
return (ip >> 4) * magic >> (64 - DWARF_LOG_UNW_HASH_SIZE);
|
||||
return ip * magic >> ((sizeof(unw_word_t) * 8) - DWARF_LOG_UNW_HASH_SIZE);
|
||||
}
|
||||
|
||||
static inline long
|
||||
|
|
Loading…
Reference in a new issue