Skip to content

Commit

Permalink
compilation fix for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Aug 28, 2024
1 parent 1e6120d commit 075d1ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/universal/number/dd/dd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,13 @@
#include <universal/traits/arithmetic_traits.hpp>
#include <universal/common/number_traits_reports.hpp>



////////////////////////////////////////////////////////////////////////////////////////
/// INCLUDE FILES that make up the library
#include <universal/number/dd/exceptions.hpp>
#include <universal/number/dd/dd_fwd.hpp>
#include <universal/number/dd/dd_impl.hpp>
#include <universal/traits/dd_traits.hpp>
#include <universal/number/dd/numeric_limits.hpp>
#include <universal/traits/dd_traits.hpp>

// useful functions to work with doubledoubles
#include <universal/number/dd/manipulators.hpp>
Expand Down
3 changes: 2 additions & 1 deletion include/universal/number/dd/dd_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class dd {
(InfType == INF_TYPE_NEGATIVE ? isNegInf :
(InfType == INF_TYPE_POSITIVE ? isPosInf : false)));
}
BIT_CAST_CONSTEXPR bool isfinite() const noexcept { return std::isfinite(hi); }

constexpr bool sign() const noexcept { return (hi < 0.0); }
constexpr int scale() const noexcept { return _extractExponent<std::uint64_t, double>(hi); }
Expand Down Expand Up @@ -1274,7 +1275,7 @@ inline dd reciprocal(const dd& a) {
// power functions

dd cbrt(const dd& a) {
if (!isfinite(a) || a.iszero())
if (!a.isfinite() || a.iszero())
return a; // NaN returns NaN; +/-Inf returns +/-Inf, +/-0.0 returns +/-0.0

bool signA = signbit(a);
Expand Down

0 comments on commit 075d1ea

Please sign in to comment.