summaryrefslogtreecommitdiffhomepage
path: root/examples/hash_crc32_example/example.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 06:12:03 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 06:15:20 -0500
commit3c1fec18cc1d11d247cfd0bd23c199ea65f3d7bd (patch)
tree81a7e6bd2264f0e2740a74be05aa708c53f01000 /examples/hash_crc32_example/example.cc
chore: OCL.FIX module, initial commit.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples/hash_crc32_example/example.cc')
-rw-r--r--examples/hash_crc32_example/example.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/hash_crc32_example/example.cc b/examples/hash_crc32_example/example.cc
new file mode 100644
index 0000000..bd27662
--- /dev/null
+++ b/examples/hash_crc32_example/example.cc
@@ -0,0 +1,14 @@
+#include <ocl/crc_hash.hpp>
+#include <ocl/print.hpp>
+
+int main(int argc, char** argv)
+{
+ if (argc != 2) return 1;
+
+ std::hash<ocl::crc_hash_trait> hash{};
+
+ ocl::io::enable_stdio_sync(false);
+ ocl::io::print(hash(argv[1]));
+
+ return 0;
+}