Module: Mesa
Branch: master
Commit: 37ba97421c5cf351e2e3c7c1e41ffd72fb73f7e9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=37ba97421c5cf351e2e3c7c1e41ffd72fb73f7e9

Author: Corbin Simpson <[email protected]>
Date:   Fri Nov 20 14:08:58 2009 -0800

util: Add MAX3 and MIN3.

---

 src/gallium/auxiliary/util/u_math.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_math.h 
b/src/gallium/auxiliary/util/u_math.h
index 75b075f..731a114 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -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)

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to