summaryrefslogtreecommitdiffhomepage
path: root/compat/round.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:35:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:35:29 +0100
commitd361f57c8064ce13a0478653050b169dc94e2e99 (patch)
tree73613b75bc4e6533455b6c3ad79c3fa39b8554fb /compat/round.hpp
parent2ab18fd01bc7c46043429511a3801846b998c749 (diff)
compat/util: retire
Adjust usages.
Diffstat (limited to 'compat/round.hpp')
-rw-r--r--compat/round.hpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/compat/round.hpp b/compat/round.hpp
deleted file mode 100644
index 90a0ccb3..00000000
--- a/compat/round.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#pragma once
-
-#include <cmath>
-
-template<typename t>
-inline int iround(const t& val)
-{
- return int(std::round(val));
-}
-
-template<typename t>
-inline unsigned uround(const t& val)
-{
- return std::round(std::fmax(t(0), val));
-}