From: Tue Ly Date: Fri, 17 Mar 2023 01:17:20 +0000 (-0400) Subject: [libc][Obvious] Reduce the size of the tests for hypot(f). X-Git-Tag: upstream/17.0.6~14518 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11da3de82d35afb8011c7aea42d76bb57d0e23cd;p=platform%2Fupstream%2Fllvm.git [libc][Obvious] Reduce the size of the tests for hypot(f). --- diff --git a/libc/test/src/math/HypotTest.h b/libc/test/src/math/HypotTest.h index e8b4cf0..8d3fd88 100644 --- a/libc/test/src/math/HypotTest.h +++ b/libc/test/src/math/HypotTest.h @@ -59,7 +59,7 @@ public: } 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; @@ -84,7 +84,7 @@ public: } 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;