[ADT] Add basic operator overloads for arithmetic to APFloat to make
authorChandler Carruth <chandlerc@gmail.com>
Thu, 9 Oct 2014 23:26:15 +0000 (23:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 9 Oct 2014 23:26:15 +0000 (23:26 +0000)
commit0ffdb31af02791f0be70c546fc66b46d4eb12517
tree578e64c8c8d55dae8924d56f25612799aa0551f9
parenta4554c28976480cda89d72313cc717140d11ce6c
[ADT] Add basic operator overloads for arithmetic to APFloat to make
code using it more readable.

Also add a copySign static function that works more like the standard
function by accepting the value and sign-carying value as arguments.

No interesting logic here, but tests added to cover the basic API
additions and make sure they do something plausible.

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