Skip to content

Commit 4f6f17d

Browse files
authored
Merge pull request #345 from dynatrace-oss/komihash-5.18
Komihash 5.18
2 parents 401cc85 + aa17bfe commit 4f6f17d

File tree

13 files changed

+13
-4197
lines changed

13 files changed

+13
-4197
lines changed

.gitmodules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[submodule "reference-implementations/komihash_4_3/komihash"]
22
path = reference-implementations/komihash_4_3/komihash
33
url = https://github.com/avaneev/komihash.git
4-
[submodule "reference-implementations/komihash_4_5/komihash"]
5-
path = reference-implementations/komihash_4_5/komihash
6-
url = https://github.com/avaneev/komihash.git
74
[submodule "reference-implementations/komihash_4_7/komihash"]
85
path = reference-implementations/komihash_4_7/komihash
96
url = https://github.com/avaneev/komihash.git
@@ -41,5 +38,5 @@
4138
path = reference-implementations/xxh3_128/xxHash
4239
url = https://github.com/Cyan4973/xxHash.git
4340
[submodule "reference-implementations/komihash_5_15/komihash"]
44-
path = reference-implementations/komihash_5_15/komihash
41+
path = reference-implementations/komihash_5_18/komihash
4542
url = https://github.com/avaneev/komihash.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ hash4j currently implements the following hash algorithms:
4444
* [final version 4](https://github.com/wangyi-fudan/wyhash/releases/tag/wyhash_final4)
4545
* [Komihash](https://github.com/avaneev/komihash)
4646
* [version 4.3](https://github.com/avaneev/komihash/releases/tag/4.3) (compatible with [version 4.7](https://github.com/avaneev/komihash/releases/tag/4.7))
47-
* [version 5.0](https://github.com/avaneev/komihash/releases/tag/5.0) (compatible with [version 5.10](https://github.com/avaneev/komihash/releases/tag/5.10) and [version 5.15](https://github.com/avaneev/komihash/releases/tag/5.15))
47+
* [version 5.0](https://github.com/avaneev/komihash/releases/tag/5.0) (compatible with [version 5.10](https://github.com/avaneev/komihash/releases/tag/5.10) and [version 5.18](https://github.com/avaneev/komihash/releases/tag/5.18))
4848
* [FarmHash](https://github.com/google/farmhash)
4949
* farmhashna
5050
* farmhashuo

reference-implementations/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ polymur-hash_2_0/polymur-hash_2_0_checksum_config.cpp \
88
wyhash_final_3/wyhash_final_3_checksum_config.cpp \
99
wyhash_final_4/wyhash_final_4_checksum_config.cpp \
1010
komihash_4_3/komihash_4_3_checksum_config.cpp \
11-
komihash_4_5/komihash_4_5_checksum_config.cpp \
1211
komihash_4_7/komihash_4_7_checksum_config.cpp \
1312
komihash_5_0/komihash_5_0_checksum_config.cpp \
1413
komihash_5_10/komihash_5_10_checksum_config.cpp \
15-
komihash_5_15/komihash_5_15_checksum_config.cpp \
14+
komihash_5_18/komihash_5_18_checksum_config.cpp \
1615
murmur3_32/murmur3_32_checksum_config.cpp \
1716
murmur3_128/murmur3_128_checksum_config.cpp \
1817
murmur3_128/smhasher/src/MurmurHash3.cpp \

reference-implementations/calculate_checksums.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
#include <openssl/evp.h>
2121

2222
#include "komihash_4_3/komihash_4_3_checksum_config.hpp"
23-
#include "komihash_4_5/komihash_4_5_checksum_config.hpp"
2423
#include "komihash_4_7/komihash_4_7_checksum_config.hpp"
2524
#include "komihash_5_0/komihash_5_0_checksum_config.hpp"
2625
#include "komihash_5_10/komihash_5_10_checksum_config.hpp"
27-
#include "komihash_5_15/komihash_5_15_checksum_config.hpp"
26+
#include "komihash_5_18/komihash_5_18_checksum_config.hpp"
2827
#include "polymur-hash_2_0/polymur-hash_2_0_checksum_config.hpp"
2928
#include "wyhash_final_3/wyhash_final_3_checksum_config.hpp"
3029
#include "wyhash_final_4/wyhash_final_4_checksum_config.hpp"
@@ -132,11 +131,10 @@ void computeAndPrintChecksum(
132131
int main(int argc, char *argv[]) {
133132

134133
computeAndPrintChecksum<Komihash4_3ChecksumConfig>();
135-
computeAndPrintChecksum<Komihash4_5ChecksumConfig>();
136134
computeAndPrintChecksum<Komihash4_7ChecksumConfig>();
137135
computeAndPrintChecksum<Komihash5_0ChecksumConfig>();
138136
computeAndPrintChecksum<Komihash5_10ChecksumConfig>();
139-
computeAndPrintChecksum<Komihash5_15ChecksumConfig>();
137+
computeAndPrintChecksum<Komihash5_18ChecksumConfig>();
140138
computeAndPrintChecksum<WyhashFinal3ChecksumConfig>();
141139
computeAndPrintChecksum<WyhashFinal4ChecksumConfig>();
142140
computeAndPrintChecksum<Murmur3_128_ChecksumConfig>(
Lines changed: 0 additions & 1 deletion
This file was deleted.

reference-implementations/komihash_4_5/komihash_4_5_checksum_config.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.

reference-implementations/komihash_5_15/komihash_5_15_checksum_config.hpp

Lines changed: 0 additions & 43 deletions
This file was deleted.
Submodule komihash added at c18f184

reference-implementations/komihash_5_15/komihash_5_15_checksum_config.cpp renamed to reference-implementations/komihash_5_18/komihash_5_18_checksum_config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "komihash_5_15_checksum_config.hpp"
16+
#include "komihash_5_18_checksum_config.hpp"
1717
#include "komihash/komihash.h"
1818
#include <cstring>
1919

20-
void Komihash5_15ChecksumConfig::calculateHash(const uint8_t *seedBytes,
20+
void Komihash5_18ChecksumConfig::calculateHash(const uint8_t *seedBytes,
2121
uint8_t *hashBytes, const uint8_t *dataBytes, uint64_t size) const {
2222

2323
uint64_t seed;

reference-implementations/komihash_4_5/komihash_4_5_checksum_config.hpp renamed to reference-implementations/komihash_5_18/komihash_5_18_checksum_config.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#ifndef KOMIHASH_4_5_CHECKSUM_CONFIG_HPP
17-
#define KOMIHASH_4_5_CHECKSUM_CONFIG_HPP
16+
#ifndef KOMIHASH_5_18_CHECKSUM_CONFIG_HPP
17+
#define KOMIHASH_5_18_CHECKSUM_CONFIG_HPP
1818

1919
#include <string>
2020
#include <cstdint>
2121

22-
class Komihash4_5ChecksumConfig {
22+
class Komihash5_18ChecksumConfig {
2323

2424
public:
2525

@@ -32,12 +32,12 @@ class Komihash4_5ChecksumConfig {
3232
}
3333

3434
std::string getName() const {
35-
return "Komihash 4.5";
35+
return "Komihash 5.18";
3636
}
3737

3838
void calculateHash(const uint8_t *seedBytes, uint8_t *hashBytes,
3939
const uint8_t *dataBytes, uint64_t size) const;
4040

4141
};
4242

43-
#endif // KOMIHASH_4_5_CHECKSUM_CONFIG_HPP
43+
#endif // KOMIHASH_5_18_CHECKSUM_CONFIG_HPP

0 commit comments

Comments
 (0)