diff options
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 478c485..a8ad9d9 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -574,7 +574,11 @@ extern void copy_bitwise (gdb_byte *dest, ULONGEST dest_offset, static inline unsigned int fast_hash (const char* str, size_t len) { +#ifdef HAVE_LIBXXHASH + return XXH64 (str, len, 0); +#else return iterative_hash (str, len, 0); +#endif } #endif /* UTILS_H */ |