From c1a0768e55604687e82243bf64acd88d97a37ba0 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 7 Dec 2023 01:16:11 +0100 Subject: Consolidate mathematical functions into single file and add more --- src/Math/Mod.hpp | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/Math/Mod.hpp (limited to 'src/Math/Mod.hpp') 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 -auto mod(A a, B b) -> decltype(a % b) { - return (a % b + b) % b; -} - -} \ No newline at end of file -- cgit 1.4.1