diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 21:23:18 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 21:23:18 +0000 |
commit | 3cb77ab98a370250778ed85dd28b88516344ac6d (patch) | |
tree | 8df10fc2b1adc26cef795bb2df9e3a83d0b6e817 /llvm/lib/Support/APFloat.cpp | |
parent | 38e6b86da0672d73293a928427d78b9b80ef5baf (diff) | |
download | bcm5719-llvm-3cb77ab98a370250778ed85dd28b88516344ac6d.tar.gz bcm5719-llvm-3cb77ab98a370250778ed85dd28b88516344ac6d.zip |
[APFloat] Converted all references to APFloat::isNormal => APFloat::isFiniteNonZero.
Turns out all the references were in llvm and not in clang.
llvm-svn: 184356
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 92c8b6d39d9..2768c4a0f8b 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -679,7 +679,7 @@ APFloat::operator=(const APFloat &rhs) bool APFloat::isDenormal() const { - return isNormal() && (exponent == semantics->minExponent) && + return isFiniteNonZero() && (exponent == semantics->minExponent) && (APInt::tcExtractBit(significandParts(), semantics->precision - 1) == 0); } @@ -689,7 +689,7 @@ APFloat::isSmallest() const { // The smallest number by magnitude in our format will be the smallest // denormal, i.e. the floating point number with exponent being minimum // exponent and significand bitwise equal to 1 (i.e. with MSB equal to 0). - return isNormal() && exponent == semantics->minExponent && + return isFiniteNonZero() && exponent == semantics->minExponent && significandMSB() == 0; } @@ -741,7 +741,7 @@ bool APFloat::isLargest() const { // The largest number by magnitude in our format will be the floating point // number with maximum exponent and with significand that is all ones. - return isNormal() && exponent == semantics->maxExponent + return isFiniteNonZero() && exponent == semantics->maxExponent && isSignificandAllOnes(); } |