projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b915533
)
util: add MIN4, MAX4
author
Keith Whitwell
<keithw@vmware.com>
Thu, 26 Aug 2010 19:03:03 +0000
(20:03 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Fri, 27 Aug 2010 12:08:54 +0000
(13:08 +0100)
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index fe19466436a089ef1fb04ef2ef6e819ad78dfe38..6ba4e24f4ceddf4ec080c859d95128210e8699d0 100644
(file)
--- 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) )
+
/**
* Align a value, only works pot alignemnts.