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)
Wed, Jul 22, 11:57 AM
Unknown Object (File)
Tue, Jul 21, 12:00 PM
Unknown Object (File)
Sat, Jul 4, 10:12 AM
Unknown Object (File)
Fri, Jul 3, 12:21 AM
Unknown Object (File)
Thu, Jul 2, 11:01 PM
Unknown Object (File)
Wed, Jul 1, 7:28 AM
Unknown Object (File)
Mon, Jun 29, 6:26 PM
Unknown Object (File)
Mon, Jun 29, 3:41 AM
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