W dniu 2010-08-27 14:14, Keith Whitwell pisze:
Module: Mesa
Branch: master
Commit: e826d0e8170028da553d2018b833af7c26b8dc1b
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e826d0e8170028da553d2018b833af7c26b8dc1b
Author: Keith Whitwell<kei...@vmware.com>
Date: Thu Aug 26 20:03:03 2010 +0100
util: add MIN4, MAX4
---
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 fe19466..6ba4e24 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -566,6 +566,9 @@ util_bswap16(uint16_t n)
#define MIN3( A, B, C ) MIN2( MIN2( A, B ), C )
#define MAX3( A, B, C ) MAX2( MAX2( A, B ), C )
+#define MIN4( A, B, C, D ) MIN2( MIN2( A, B ), MIN2(C, D) )
+#define MAX4( A, B, C, D ) MAX2( MAX2( A, B ), MIN2(C, D) )
+
Typo in MAX4?
/**
* Align a value, only works pot alignemnts.
_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit