Improve detection of isinf, isnan and getsign

This commit is contained in:
vitaut
2015-11-21 07:20:18 -08:00
parent 223575b567
commit 8beadace37
2 changed files with 65 additions and 60 deletions

View File

@@ -49,7 +49,7 @@ TEST(FormatTest, ArgConverter) {
TEST(FormatTest, FormatNegativeNaN) {
double nan = std::numeric_limits<double>::quiet_NaN();
if (fmt::internal::getsign(-nan))
if (fmt::internal::FPUtil::isnegative(-nan))
EXPECT_EQ("-nan", fmt::format("{}", -nan));
else
fmt::print("Warning: compiler doesn't handle negative NaN correctly");