From 8da465a4fcde575dff827a435251b3e8196498c3 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 30 Jul 2020 19:27:30 +0200 Subject: [PATCH] clamp can go --- src/sauerlib/tools.hh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sauerlib/tools.hh b/src/sauerlib/tools.hh index 3245edc..faaf234 100644 --- a/src/sauerlib/tools.hh +++ b/src/sauerlib/tools.hh @@ -56,11 +56,6 @@ static inline T min(T a, T b, T c) { return min(min(a, b), c); } -template -static inline T clamp(T a, U b, U c) -{ - return max(T(b), min(a, T(c))); -} #ifdef __GNUC__ #define bitscan(mask) (__builtin_ffs(mask)-1)