From 3c266f4d780f182d6c7694c1068a375bbd27dadb Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Wed, 7 Jun 2023 12:58:45 +0200 Subject: [PATCH] Tuning range of input generation to avoid hitting infinity --- test_conformance/basic/test_fpmath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/basic/test_fpmath.cpp b/test_conformance/basic/test_fpmath.cpp index 8a03e9555f..9ea6000f52 100644 --- a/test_conformance/basic/test_fpmath.cpp +++ b/test_conformance/basic/test_fpmath.cpp @@ -136,8 +136,8 @@ template void generate_random_inputs(std::vector (&input)[2]) else { auto random_generator = [&seed]() { - return HFF(get_random_float(-MAKE_HEX_FLOAT(0x1.0p15f, 0x1, 15), - MAKE_HEX_FLOAT(0x1.0p15f, 0x1, 15), + return HFF(get_random_float(-MAKE_HEX_FLOAT(0x1.0p8f, 0x1, 8), + MAKE_HEX_FLOAT(0x1.0p8f, 0x1, 8), seed)); }; for (auto &v : input)