Page MenuHomeFreeBSD

dc(1): fix modulo operations with fractional inputs
ClosedPublic

Authored by asomers on Dec 6 2017, 4:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 28, 6:10 PM
Unknown Object (File)
Tue, Jun 25, 4:18 AM
Unknown Object (File)
Jun 2 2024, 10:51 AM
Unknown Object (File)
May 17 2024, 7:49 PM
Unknown Object (File)
May 14 2024, 4:16 AM
Unknown Object (File)
Dec 20 2023, 1:32 AM
Unknown Object (File)
Nov 12 2023, 1:16 PM
Unknown Object (File)
Oct 9 2023, 12:13 PM
Subscribers

Details

Summary

dc(1): fix modulo operations with fractional inputs

Our dc(1) has never correctly calculated remainders with fractional inputs.
Both bmod and bdivmod seem to have copy/pasted code from bdiv, which results
in the remainder having the wrong output scale.

Test Plan

Test cases added

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable