summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/hashing/crc_hash.hpp
diff options
context:
space:
mode:
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;
}