From 8329d42d3e592f4cd42cdfa586e2325ddc76c898 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 10 Mar 2026 01:35:50 +0100 Subject: perf profiler, simplify 2d render, string struct, many small things --- src/util/math.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/util/math.h') diff --git a/src/util/math.h b/src/util/math.h index add705a..7bae125 100644 --- a/src/util/math.h +++ b/src/util/math.h @@ -57,18 +57,18 @@ inline F32 m_snap_to_grid( F32 x, F32 grid ) { } template -inline T m_min( T a, T b ) { - return a < b ? a : b; +T min( T a, T b ) { + return a < b? a : b; } template -inline T m_max( T a, T b ) { - return a > b ? a : b; +T max( T a, T b ) { + return a > b? a : b; } template inline T m_clamp( T x, T a, T b ) { - return m_min( m_max( x, a ), b ); + return min( max( x, a ), b ); } extern VEC2 m_screen_transform( const VEC3& world ); -- cgit v1.2.3