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)
Dec 20 2023, 1:32 AM
Unknown Object (File)
Nov 12 2023, 1:16 PM
Unknown Object (File)
Oct 9 2023, 12:13 PM
Unknown Object (File)
Jun 14 2023, 6:14 PM
Unknown Object (File)
Jun 5 2023, 8:12 PM
Unknown Object (File)
Jun 3 2023, 1:37 AM
Unknown Object (File)
May 14 2023, 6:16 AM
Unknown Object (File)
May 3 2023, 9:11 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