From 62ba53b68eb8ddc6954552549b44242fd3c7b26e Mon Sep 17 00:00:00 2001 From: mcb Date: Wed, 20 Nov 2024 14:41:50 +0100 Subject: [PATCH] test remove xxhash --- include/dice/hash/DiceHash.hpp | 4 ++-- include/dice/hash/internal/DiceHashPolicies.hpp | 4 +++- tests/TestDiceHash.cpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/dice/hash/DiceHash.hpp b/include/dice/hash/DiceHash.hpp index c5c1a21..e0233fa 100644 --- a/include/dice/hash/DiceHash.hpp +++ b/include/dice/hash/DiceHash.hpp @@ -356,8 +356,8 @@ namespace dice::hash { template using DiceHashMartinus = DiceHash; - template - using DiceHashxxh3 = DiceHash; + //template + //using DiceHashxxh3 = DiceHash; template using DiceHashwyhash = DiceHash; }// namespace dice::hash diff --git a/include/dice/hash/internal/DiceHashPolicies.hpp b/include/dice/hash/internal/DiceHashPolicies.hpp index b22fdbc..a43ee53 100644 --- a/include/dice/hash/internal/DiceHashPolicies.hpp +++ b/include/dice/hash/internal/DiceHashPolicies.hpp @@ -3,7 +3,7 @@ #include "martinus_robinhood_hash.hpp" #include "wyhash.h" -#include "xxhash.hpp" +//#include "xxhash.hpp" #include namespace dice::hash::Policies { @@ -72,6 +72,7 @@ namespace dice::hash::Policies { }; }; +#if 0 struct xxh3 { inline static constexpr std::size_t size_t_bits = 8 * sizeof(std::size_t); inline static constexpr std::size_t seed = std::size_t(0xA24BAED4963EE407UL); @@ -109,6 +110,7 @@ namespace dice::hash::Policies { } }; }; +#endif struct Martinus { static constexpr std::size_t ErrorValue = dice::hash::martinus::seed; diff --git a/tests/TestDiceHash.cpp b/tests/TestDiceHash.cpp index 7c1577c..3e60a4f 100644 --- a/tests/TestDiceHash.cpp +++ b/tests/TestDiceHash.cpp @@ -2,7 +2,7 @@ #include -#define AllPoliciesToTestForDiceHash dice::hash::Policies::Martinus, dice::hash::Policies::xxh3, \ +#define AllPoliciesToTestForDiceHash dice::hash::Policies::Martinus, \ dice::hash::Policies::wyhash #define AllTypesToTestForDiceHash int, long, std::size_t, std::byte, std::string, std::string_view, int *, long *, \ std::string *, std::unique_ptr, std::shared_ptr, std::vector, \