From a46f6d07c5f8c6d65940b2d8ec62535ee1983315 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 2 Dec 2017 08:19:17 +0100 Subject: compat/math: simplify for inlining --- compat/math-imports.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat/math-imports.hpp') diff --git a/compat/math-imports.hpp b/compat/math-imports.hpp index 1aea3ce6..4d8d5a5f 100644 --- a/compat/math-imports.hpp +++ b/compat/math-imports.hpp @@ -3,7 +3,7 @@ template static inline constexpr auto signum(T x) { - return (T() < x) - (x < T()); + return x < T(0) ? -1 : 1; } #include -- cgit v1.2.3