From f02845884152a1a2c4659c697ca23ccd7816ab45 Mon Sep 17 00:00:00 2001 From: Clortox Date: Sun, 25 Jul 2021 13:41:21 -0400 Subject: [PATCH] Remove tylers_utils.hpp --- src/tylers_utils.hpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/tylers_utils.hpp diff --git a/src/tylers_utils.hpp b/src/tylers_utils.hpp deleted file mode 100644 index 9f146a0..0000000 --- a/src/tylers_utils.hpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Tyler Perkins -// 7-24-21 -// Tyler's useful utilities for c++ -// - -namespace tylers_utilities{ - //constexpr hash function - constexpr size_t hash(const char* str){ - const long long p = 131; - const long long m = 4294967291; //2^32 - 5 - long long total = 0; - long long current_multiplier = 1; - for(int i = 0; str[i] != '\0'; ++i){ - total = (total + current_multiplier * str[i]) % m; - current_multiplier = (current_multiplier * p) % m; - } - return total; - } -}