math: rewrite remainder functions (remainder, remquo, fmod, modf)
commitee2ee92d62c43f6658d37ddea4c316d2089d0fe9
authorSzabolcs Nagy <nsz@port70.net>
Tue, 3 Sep 2013 04:09:12 +0000 (3 04:09 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 11:30:07 +0000 (5 11:30 +0000)
tree1a3e5a63fd40fa763f87d5dd9efd021117ea1d11
parentd1a2ead878c27ac4ec600740320f8b76e1f961e9
math: rewrite remainder functions (remainder, remquo, fmod, modf)

* results are exact
* modfl follows truncl (raises inexact flag spuriously now)
* modf and modff only had cosmetic cleanup
* remainder is just a wrapper around remquo now
* using iterative shift+subtract for remquo and fmod
* ld80 and ld128 are supported as well
src/math/fmod.c
src/math/fmodf.c
src/math/fmodl.c
src/math/modf.c
src/math/modff.c
src/math/modfl.c
src/math/remainder.c
src/math/remainderf.c
src/math/remquo.c
src/math/remquof.c
src/math/remquol.c