mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* Add xxHash example * Fix link error * run code formatters --------- Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
13 lines
222 B
C++
13 lines
222 B
C++
#include <xxh3.h>
|
|
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
std::string example = "Hello World!";
|
|
XXH64_hash_t hash = XXH3_64bits(example.data(), example.size());
|
|
|
|
std::cout << "Hash: " << hash << std::endl;
|
|
|
|
return 0;
|
|
}
|