summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-16 15:22:13 -0400
committerLioncash <mathew1800@gmail.com>2018-05-16 15:39:23 -0400
commit011ee110bc2bd4783501a3a978e3206a1960aa79 (patch)
tree576388d0d149bc8854b0100f26961913c5acaec4 /Source/Core/Common
parentb203024a26ac31b9e1a7f16764c75915b29d66b5 (diff)
Common/Hash: Namespace code under the Common namespace
Brings more common code under the Common namespace.
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Hash.cpp3
-rw-r--r--Source/Core/Common/Hash.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp
index 2678ab89bc..193ff5257b 100644
--- a/Source/Core/Common/Hash.cpp
+++ b/Source/Core/Common/Hash.cpp
@@ -15,6 +15,8 @@
#include <arm_acle.h>
#endif
+namespace Common
+{
static u64 (*ptrHashFunction)(const u8* src, u32 len, u32 samples) = nullptr;
// uint32_t
@@ -524,3 +526,4 @@ void SetHash64Function()
ptrHashFunction = &GetMurmurHash3;
}
}
+} // namespace Common
diff --git a/Source/Core/Common/Hash.h b/Source/Core/Common/Hash.h
index 42f5741b40..488f68cc1a 100644
--- a/Source/Core/Common/Hash.h
+++ b/Source/Core/Common/Hash.h
@@ -8,8 +8,11 @@
#include "Common/CommonTypes.h"
+namespace Common
+{
u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0.
u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slower
u32 HashEctor(const u8* ptr, int length); // JUNK. DO NOT USE FOR NEW THINGS
u64 GetHash64(const u8* src, u32 len, u32 samples);
void SetHash64Function();
+} // namespace Common