diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2018-05-16 22:04:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-16 22:04:20 +0200 |
| commit | 8fa8aa3e1b31078a9ccf403a41fff622f77bfcaf (patch) | |
| tree | 4aa8ff271902d1dfdd57e2bdc20fdb44fdf3f95a /Source/Core/Common | |
| parent | 8ca1bf52c98b903caeb398c4d61964078f7b43df (diff) | |
| parent | 011ee110bc2bd4783501a3a978e3206a1960aa79 (diff) | |
Merge pull request #6870 from lioncash/hash
Common/Hash: Namespace code under the Common namespace
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Hash.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/Common/Hash.h | 3 |
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 |
