summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-26 20:57:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-26 21:10:13 +0200
commit285c75682f1e93a8809876ec7b2f6cd2cc79931d (patch)
treec9da2dbdd98e887d50781b662e5c959ce4b838b8 /compat
parentd4d799cac8080d4066394f338c31611ae655d5f6 (diff)
compat: remove crappy uround()
Diffstat (limited to 'compat')
-rw-r--r--compat/math.hpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/compat/math.hpp b/compat/math.hpp
index 1387324e..f05ebdc8 100644
--- a/compat/math.hpp
+++ b/compat/math.hpp
@@ -11,12 +11,6 @@ inline auto iround(t val) -> std::enable_if_t<std::is_floating_point_v<remove_cv
return (int)std::round(val);
}
-template<typename t>
-inline auto uround(t val) -> std::enable_if_t<std::is_floating_point_v<remove_cvref_t<t>>, unsigned>
-{
- return (unsigned)std::fmax(0, std::round(val));
-}
-
template <typename t>
force_inline
constexpr int signum(const t& x)