Revert unintentional changes to rt_math.h
This reverts a part of commit 7e70412090
.
This commit is contained in:
@@ -56,13 +56,6 @@ constexpr const T& min(const T& a, const T& b)
|
||||
return b < a ? b : a;
|
||||
}
|
||||
|
||||
template<>
|
||||
constexpr const float& min(const float& a, const float& b)
|
||||
{
|
||||
// For consistency reasons we return b instead of a if a == b or a == NaN
|
||||
return a < b ? a : b;
|
||||
}
|
||||
|
||||
template<typename T, typename... ARGS>
|
||||
constexpr const T& min(const T& a, const T& b, const ARGS&... args)
|
||||
{
|
||||
@@ -81,13 +74,6 @@ constexpr const T& max(const T& a, const T& b)
|
||||
return a < b ? b : a;
|
||||
}
|
||||
|
||||
template<>
|
||||
constexpr const float& max(const float& a, const float& b)
|
||||
{
|
||||
// For consistency reasons we return b instead of a if a == b or a == NaN
|
||||
return b < a ? a : b;
|
||||
}
|
||||
|
||||
template<typename T, typename... ARGS>
|
||||
constexpr const T& max(const T& a, const T& b, const ARGS&... args)
|
||||
{
|
||||
|
Reference in New Issue
Block a user