diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-30 14:41:18 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-30 14:41:18 +0000 |
| commit | 4ed3c0e713adac46dcca8a9ee668221399b7b659 (patch) | |
| tree | 06929dc26671f0710b964d5bb0a7634f12528a36 /sys/libkern/crc32.c | |
| parent | 7154bf4a413eca71cffdb37361ad19960501a2fa (diff) | |
Notes
Diffstat (limited to 'sys/libkern/crc32.c')
| -rw-r--r-- | sys/libkern/crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/crc32.c b/sys/libkern/crc32.c index c0b464cee388..65331ce2fde3 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++) |
