diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/util/math.h | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/util/math.h')
| -rw-r--r-- | src/util/math.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 <typename T> -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 <typename T> -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 <typename T> 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 ); |
