/[base]
ViewVC logotype

Revision 326652


Jump to revision: Previous Next
Author: asomers
Date: Thu Dec 7 02:08:55 2017 UTC (6 years, 6 months ago)
Changed paths: 5
Log Message:
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.

PR:		162495
Reported by:	anonymous
Reviewed by:	pfg
Differential Revision:	https://reviews.freebsd.org/D13390


Changed paths

Path Details
Directoryhead/usr.bin/dc/bcode.c modified , text changed
Directoryhead/usr.bin/dc/dc.1 modified , text changed
Directoryhead/usr.bin/dc/tests/Makefile modified , text changed
Directoryhead/usr.bin/dc/tests/bcode.sh added
Directoryhead/usr.bin/dc/tests/inout.sh modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27