Skip to content

Commit

Permalink
[libc][Obvious] Reduce the size of the tests for hypot(f).
Browse files Browse the repository at this point in the history
  • Loading branch information
lntue committed Mar 17, 2023
1 parent 1029747 commit 11da3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc/test/src/math/HypotTest.h
Expand Up @@ -59,7 +59,7 @@ class HypotTestTemplate : public __llvm_libc::testing::Test {
}

void test_subnormal_range(Func func) {
constexpr UIntType COUNT = 1000001;
constexpr UIntType COUNT = 100001;
for (unsigned scale = 0; scale < 4; ++scale) {
UIntType max_value = FPBits::MAX_SUBNORMAL << scale;
UIntType step = (max_value - FPBits::MIN_SUBNORMAL) / COUNT;
Expand All @@ -84,7 +84,7 @@ class HypotTestTemplate : public __llvm_libc::testing::Test {
}

void test_normal_range(Func func) {
constexpr UIntType COUNT = 1000001;
constexpr UIntType COUNT = 100001;
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
for (int signs = 0; signs < 4; ++signs) {
for (UIntType v = FPBits::MIN_NORMAL, w = FPBits::MAX_NORMAL;
Expand Down

0 comments on commit 11da3de

Please sign in to comment.