OSDN Git Service

Fix APFloat mod sign
authorSerguei Katkov <serguei.katkov@azul.com>
Wed, 1 Nov 2017 07:56:55 +0000 (07:56 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Wed, 1 Nov 2017 07:56:55 +0000 (07:56 +0000)
commitbfaa9edde93772113f28b727fd8f1bf7f6667ddb
tree770f70d80b1d20de64a95bf642e66e6299d24cc9
parent5d7d418e3b7d9ecfae4c63338bc4e87e8b666ffd
Fix APFloat mod sign

fmod specification requires the sign of the remainder is
the same as numerator in case remainder is zero.

Reviewers: gottesmm, scanon, arsenm, davide, craig.topper
Reviewed By: scanon
Subscribers: wdng, llvm-commits
Differential Revision: https://reviews.llvm.org/D39225

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp
unittests/ADT/APFloatTest.cpp