summaryrefslogtreecommitdiff
path: root/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-06-19 21:23:18 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-06-19 21:23:18 +0000
commit07969dc8aed62fcd5c5760b2ec331275479f4a80 (patch)
treedd98fa7223a4b857544308302963ec7b1d0b90c5 /lib/Support/APFloat.cpp
parent63e8ba9bcf1d83422f56ae2454dbd7190c1e2a41 (diff)
downloadllvm-07969dc8aed62fcd5c5760b2ec331275479f4a80.tar.gz
llvm-07969dc8aed62fcd5c5760b2ec331275479f4a80.tar.bz2
llvm-07969dc8aed62fcd5c5760b2ec331275479f4a80.tar.xz
[APFloat] Converted all references to APFloat::isNormal => APFloat::isFiniteNonZero.
Turns out all the references were in llvm and not in clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index 92c8b6d39d..2768c4a0f8 100644
--- a/lib/Support/APFloat.cpp
+++ b/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();
}