Skip to content

Commit

Permalink
Tuning range of input generation to avoid hitting infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Jun 7, 2023
1 parent 2de0a31 commit 3c266f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/basic/test_fpmath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ template <typename T> void generate_random_inputs(std::vector<T> (&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)
Expand Down

0 comments on commit 3c266f4

Please sign in to comment.