summaryrefslogtreecommitdiffstats
path: root/sys/libkern/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libkern/crc32.c')
-rw-r--r--sys/libkern/crc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/crc32.c b/sys/libkern/crc32.c
index c0b464c..65331ce 100644
--- a/sys/libkern/crc32.c
+++ b/sys/libkern/crc32.c
@@ -684,7 +684,7 @@ crc32c_sb8_64_bit(uint32_t crc,
uint32_t running_length;
uint32_t end_bytes;
- running_length = ((length - init_bytes) / 8) * 8;
+ running_length = rounddown(length - init_bytes, 8);
end_bytes = length - init_bytes - running_length;
for (li = 0; li < init_bytes; li++)
OpenPOWER on IntegriCloud