summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/hashing/crc_hash.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 06:14:31 -0500
committerGitHub <noreply@github.com>2025-12-02 06:14:31 -0500
commit92d95762c9cf75d9493ec75042c9415b382f10b0 (patch)
treedfcbd5b3fb9303e40b32db34cc857243df86ffc9 /include/ocl/hashing/crc_hash.hpp
parenta28d3e2e4e99793cf91f919d9341f5e07aa998e1 (diff)
parentbea0e3e713751e5c2a4d2d4343d8215333eef03e (diff)
Merge pull request #37 from amlel-el-mahrouss/developv1
chore: module source code tweaks and improvements.
Diffstat (limited to 'include/ocl/hashing/crc_hash.hpp')
-rw-r--r--include/ocl/hashing/crc_hash.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ocl/hashing/crc_hash.hpp b/include/ocl/hashing/crc_hash.hpp
index 0322e65..89f3eff 100644
--- a/include/ocl/hashing/crc_hash.hpp
+++ b/include/ocl/hashing/crc_hash.hpp
@@ -67,9 +67,10 @@ namespace ocl
return 0;
std::uint32_t crc = 0xffffffff;
- std::size_t cnt = 0;
+ std::size_t cnt = 0;
- while ((len--) > 0) {
+ while ((len--) > 0)
+ {
crc = (crc >> 8) ^ crc_array_[(crc ^ in[cnt]) & 0xFF];
++cnt;
}