diff options
Diffstat (limited to 'src/Math/Mod.hpp')
| -rw-r--r-- | src/Math/Mod.hpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Math/Mod.hpp b/src/Math/Mod.hpp deleted file mode 100644 index d686ad9..0000000 --- a/src/Math/Mod.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -namespace Math { - -// Returns the least nonnegative remainder of a % b. -// Euclidian definition of modulo. -template <typename A, typename B> -auto mod(A a, B b) -> decltype(a % b) { - return (a % b + b) % b; -} - -} \ No newline at end of file |
