Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Dec 25, 2024
1 parent f24b447 commit 7da0382
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/serialise/xxhash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,14 @@ namespace util {
return h;
}

uint64_t xxhash64(const void* input_v, const size_t& length, const uint64_t& seed) {
uint64_t xxhash64(const char* input, const size_t& length, const uint64_t& seed) {

static constexpr uint64_t PRIME1 = 11400714785074694791ULL;
static constexpr uint64_t PRIME2 = 14029467366897019727ULL;
static constexpr uint64_t PRIME3 = 1609587929392839161ULL;
static constexpr uint64_t PRIME4 = 9650029242287828579ULL;
static constexpr uint64_t PRIME5 = 2870177450012600261ULL;

// Cast the input pointer to a character pointer.
const auto* input = static_cast<const char*>(input_v);
/// The hash value being calculated.
uint64_t h{};
/// A pointer to the current position in the input buffer.
Expand Down

0 comments on commit 7da0382

Please sign in to comment.