mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
[APFloat] Rename isIEEENormal => isNormal and remove old isNormal method.
The old isNormal is already functionally replaced by the method isFiniteNonZero in r184350 and all references to said method were replaced in LLVM/clang in r184356/134366. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb729e004b
commit
a1694e5784
@ -362,7 +362,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// The current implementation of isNormal() differs from this by treating
|
/// The current implementation of isNormal() differs from this by treating
|
||||||
/// subnormal values as normal values.
|
/// subnormal values as normal values.
|
||||||
bool isIEEENormal() const { return !isDenormal() && isFiniteNonZero(); }
|
bool isNormal() const { return !isDenormal() && isFiniteNonZero(); }
|
||||||
|
|
||||||
/// Returns true if and only if the current value is zero, subnormal, or
|
/// Returns true if and only if the current value is zero, subnormal, or
|
||||||
/// normal.
|
/// normal.
|
||||||
@ -394,7 +394,6 @@ public:
|
|||||||
fltCategory getCategory() const { return category; }
|
fltCategory getCategory() const { return category; }
|
||||||
const fltSemantics &getSemantics() const { return *semantics; }
|
const fltSemantics &getSemantics() const { return *semantics; }
|
||||||
bool isNonZero() const { return category != fcZero; }
|
bool isNonZero() const { return category != fcZero; }
|
||||||
bool isNormal() const { return category == fcNormal; }
|
|
||||||
bool isFiniteNonZero() const { return isFinite() && !isZero(); }
|
bool isFiniteNonZero() const { return isFinite() && !isZero(); }
|
||||||
bool isPosZero() const { return isZero() && !isNegative(); }
|
bool isPosZero() const { return isZero() && !isNegative(); }
|
||||||
bool isNegZero() const { return isZero() && isNegative(); }
|
bool isNegZero() const { return isZero() && isNegative(); }
|
||||||
|
@ -1417,15 +1417,15 @@ TEST(APFloatTest, isNegative) {
|
|||||||
EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isNegative());
|
EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isNegative());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(APFloatTest, isIEEENormal) {
|
TEST(APFloatTest, isNormal) {
|
||||||
APFloat t(APFloat::IEEEsingle, "0x1p+0");
|
APFloat t(APFloat::IEEEsingle, "0x1p+0");
|
||||||
EXPECT_TRUE(t.isIEEENormal());
|
EXPECT_TRUE(t.isNormal());
|
||||||
|
|
||||||
EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isIEEENormal());
|
EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNormal());
|
||||||
EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isIEEENormal());
|
EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNormal());
|
||||||
EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isIEEENormal());
|
EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isNormal());
|
||||||
EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isIEEENormal());
|
EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNormal());
|
||||||
EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isIEEENormal());
|
EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNormal());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(APFloatTest, isFinite) {
|
TEST(APFloatTest, isFinite) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user