fmodl, remainder*: Avoid wrong results due to rounding errors.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Feb 2012 23:36:01 +0000 (00:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 25 Feb 2012 23:36:01 +0000 (00:36 +0100)
commit0e1c6ff93f27c939ba9e0df945b16ef98eaaeef1
treeef99348fd84d3144205514baa0e384464cfc9e8a
parent87fdcafc0dd23b672f8d9496625b6c04dce1e324
fmodl, remainder*: Avoid wrong results due to rounding errors.

* lib/fmodl.c (fmodl): Correct the result if it is not within the
expected bounds.
* lib/remainderf.c (remainderf): Likewise.
* lib/remainder.c (remainder): Likewise.
* lib/remainderl.c (remainderl): Likewise.
ChangeLog
lib/fmodl.c
lib/remainder.c
lib/remainderf.c
lib/remainderl.c