Skip to content

Commit

Permalink
remove duplicate sgn function
Browse files Browse the repository at this point in the history
  • Loading branch information
SizzinSeal committed Jan 5, 2025
1 parent 2478cc5 commit 1e4a5cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/units/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,6 @@ template <isQuantity Q1, isQuantity Q2> constexpr Q1 copysign(const Q1& lhs, con
return Q1(std::copysign(lhs.internal(), rhs.internal()));
}

template <isQuantity Q> constexpr int sgn(const Q& lhs) { return lhs.internal() < 0 ? -1 : 1; }

template <isQuantity Q> constexpr bool signbit(const Q& lhs) { return std::signbit(lhs.internal()); }

template <isQuantity Q, isQuantity R, isQuantity S> constexpr Q clamp(const Q& lhs, const R& lo, const S& hi)
Expand Down

0 comments on commit 1e4a5cc

Please sign in to comment.