mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
util: Add MAX3 and MIN3.
This commit is contained in:
parent
beea241374
commit
37ba97421c
1 changed files with 3 additions and 0 deletions
|
|
@ -499,6 +499,9 @@ util_next_power_of_two(unsigned x)
|
|||
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
|
||||
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
|
||||
|
||||
#define MIN3( A, B, C ) MIN2( MIN2( A, B ), C )
|
||||
#define MAX3( A, B, C ) MAX2( MAX2( A, B ), C )
|
||||
|
||||
|
||||
static INLINE int
|
||||
align(int value, int alignment)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue