Revert "Merge to upstream r304942."
This reverts commit83b1388ecd, reversing changes made tof20819f925. Test: treehugger Bug: None
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
// <cmath>
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
||||
@@ -552,13 +551,6 @@ void test_signbit()
|
||||
static_assert((std::is_same<decltype(std::signbit((long double)0)), bool>::value), "");
|
||||
static_assert((std::is_same<decltype(signbit(Ambiguous())), Ambiguous>::value), "");
|
||||
assert(std::signbit(-1.0) == true);
|
||||
assert(std::signbit(0u) == false);
|
||||
assert(std::signbit(std::numeric_limits<unsigned>::max()) == false);
|
||||
assert(std::signbit(0) == false);
|
||||
assert(std::signbit(1) == false);
|
||||
assert(std::signbit(-1) == true);
|
||||
assert(std::signbit(std::numeric_limits<int>::max()) == false);
|
||||
assert(std::signbit(std::numeric_limits<int>::min()) == true);
|
||||
}
|
||||
|
||||
void test_fpclassify()
|
||||
@@ -572,11 +564,6 @@ void test_fpclassify()
|
||||
static_assert((std::is_same<decltype(std::fpclassify((long double)0)), int>::value), "");
|
||||
static_assert((std::is_same<decltype(fpclassify(Ambiguous())), Ambiguous>::value), "");
|
||||
assert(std::fpclassify(-1.0) == FP_NORMAL);
|
||||
assert(std::fpclassify(0) == FP_ZERO);
|
||||
assert(std::fpclassify(1) == FP_NORMAL);
|
||||
assert(std::fpclassify(-1) == FP_NORMAL);
|
||||
assert(std::fpclassify(std::numeric_limits<int>::max()) == FP_NORMAL);
|
||||
assert(std::fpclassify(std::numeric_limits<int>::min()) == FP_NORMAL);
|
||||
}
|
||||
|
||||
void test_isfinite()
|
||||
@@ -590,11 +577,6 @@ void test_isfinite()
|
||||
static_assert((std::is_same<decltype(std::isfinite((long double)0)), bool>::value), "");
|
||||
static_assert((std::is_same<decltype(isfinite(Ambiguous())), Ambiguous>::value), "");
|
||||
assert(std::isfinite(-1.0) == true);
|
||||
assert(std::isfinite(0) == true);
|
||||
assert(std::isfinite(1) == true);
|
||||
assert(std::isfinite(-1) == true);
|
||||
assert(std::isfinite(std::numeric_limits<int>::max()) == true);
|
||||
assert(std::isfinite(std::numeric_limits<int>::min()) == true);
|
||||
}
|
||||
|
||||
void test_isnormal()
|
||||
@@ -608,11 +590,6 @@ void test_isnormal()
|
||||
static_assert((std::is_same<decltype(std::isnormal((long double)0)), bool>::value), "");
|
||||
static_assert((std::is_same<decltype(isnormal(Ambiguous())), Ambiguous>::value), "");
|
||||
assert(std::isnormal(-1.0) == true);
|
||||
assert(std::isnormal(0) == false);
|
||||
assert(std::isnormal(1) == true);
|
||||
assert(std::isnormal(-1) == true);
|
||||
assert(std::isnormal(std::numeric_limits<int>::max()) == true);
|
||||
assert(std::isnormal(std::numeric_limits<int>::min()) == true);
|
||||
}
|
||||
|
||||
void test_isgreater()
|
||||
@@ -674,11 +651,6 @@ void test_isinf()
|
||||
static_assert((std::is_same<decltype(std::isinf(0)), bool>::value), "");
|
||||
static_assert((std::is_same<decltype(std::isinf((long double)0)), bool>::value), "");
|
||||
assert(std::isinf(-1.0) == false);
|
||||
assert(std::isinf(0) == false);
|
||||
assert(std::isinf(1) == false);
|
||||
assert(std::isinf(-1) == false);
|
||||
assert(std::isinf(std::numeric_limits<int>::max()) == false);
|
||||
assert(std::isinf(std::numeric_limits<int>::min()) == false);
|
||||
}
|
||||
|
||||
void test_isless()
|
||||
@@ -759,11 +731,6 @@ void test_isnan()
|
||||
static_assert((std::is_same<decltype(std::isnan(0)), bool>::value), "");
|
||||
static_assert((std::is_same<decltype(std::isnan((long double)0)), bool>::value), "");
|
||||
assert(std::isnan(-1.0) == false);
|
||||
assert(std::isnan(0) == false);
|
||||
assert(std::isnan(1) == false);
|
||||
assert(std::isnan(-1) == false);
|
||||
assert(std::isnan(std::numeric_limits<int>::max()) == false);
|
||||
assert(std::isnan(std::numeric_limits<int>::min()) == false);
|
||||
}
|
||||
|
||||
void test_isunordered()
|
||||
|
||||
Reference in New Issue
Block a user