We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a17f6e commit a7675dfCopy full SHA for a7675df
include/boost/decimal/decimal32_fast.hpp
@@ -464,12 +464,7 @@ constexpr auto issignaling(decimal32_fast val) noexcept -> bool
464
465
constexpr auto isnormal(decimal32_fast val) noexcept -> bool
466
{
467
- if (val.exponent_ <= static_cast<std::uint8_t>(detail::precision_v<decimal32> - 1))
468
- {
469
- return false;
470
- }
471
-
472
- return (val.significand_ != 0) && isfinite(val);
+ return (val.significand_ != 0) && isfinite(val) && (val.exponent_ > static_cast<std::uint8_t>(detail::precision_v<decimal32> - 1));
473
}
474
475
constexpr auto isfinite(decimal32_fast val) noexcept -> bool
0 commit comments