mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
COMMON: Enforce formatting guidelines a bit more in util.h.
This commit is contained in:
parent
f51f0e5ae8
commit
2f9b7ba686
@ -41,10 +41,10 @@
|
||||
#undef MAX
|
||||
#endif
|
||||
|
||||
template<typename T> inline T ABS (T x) { return (x>=0) ? x : -x; }
|
||||
template<typename T> inline T MIN (T a, T b) { return (a<b) ? a : b; }
|
||||
template<typename T> inline T MAX (T a, T b) { return (a>b) ? a : b; }
|
||||
template<typename T> inline T CLIP (T v, T amin, T amax)
|
||||
template<typename T> inline T ABS(T x) { return (x >= 0) ? x : -x; }
|
||||
template<typename T> inline T MIN(T a, T b) { return (a < b) ? a : b; }
|
||||
template<typename T> inline T MAX(T a, T b) { return (a > b) ? a : b; }
|
||||
template<typename T> inline T CLIP(T v, T amin, T amax)
|
||||
{ if (v < amin) return amin; else if (v > amax) return amax; else return v; }
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user