diff options
Diffstat (limited to 'compat/round.hpp')
-rw-r--r-- | compat/round.hpp | 15 |
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)); -} |