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)
Sun, Dec 15, 10:03 PM
Unknown Object (File)
Sun, Nov 24, 3:19 AM
Unknown Object (File)
Sat, Nov 23, 8:40 AM
Unknown Object (File)
Nov 22 2024, 1:09 PM
Unknown Object (File)
Nov 21 2024, 6:12 AM
Unknown Object (File)
Nov 20 2024, 5:40 PM
Unknown Object (File)
Nov 5 2024, 10:02 AM
Unknown Object (File)
Oct 17 2024, 5:55 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 Passed
Unit
No Test Coverage
Build Status
Buildable 13373
Build 13605: arc lint + arc unit