summaryrefslogtreecommitdiff
path: root/Source/Core/Common/CRC32.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-12-10 12:47:03 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-01 10:36:38 -0800
commit2652aed85c0ab0ee9d51cfd5065b4bb4a620ab45 (patch)
tree468fca3aaa17cb25aa156b0c529745d5adb27db0 /Source/Core/Common/CRC32.cpp
parent85d2ea0dd28444effed13a622360253f2d74bcba (diff)
Common: Merge CRC32.h into Hash.h
This makes it easier to find the relevant functions.
Diffstat (limited to 'Source/Core/Common/CRC32.cpp')
-rw-r--r--Source/Core/Common/CRC32.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/Common/CRC32.cpp b/Source/Core/Common/CRC32.cpp
deleted file mode 100644
index c09a578196..0000000000
--- a/Source/Core/Common/CRC32.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2021 Dolphin Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "Common/CRC32.h"
-
-#include <zlib.h>
-
-namespace Common
-{
-u32 ComputeCRC32(std::string_view data)
-{
- const Bytef* buf = reinterpret_cast<const Bytef*>(data.data());
- uInt len = static_cast<uInt>(data.size());
- // Use zlibs crc32 implementation to compute the hash
- u32 hash = crc32(0L, Z_NULL, 0);
- hash = crc32(hash, buf, len);
- return hash;
-}
-} // namespace Common