summaryrefslogtreecommitdiff
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-12-22 11:04:32 -0800
committerEric Anholt <eric@anholt.net>2009-12-22 14:20:26 -0800
commitd203dbc73d3b036937e0404b580fb04d23e10652 (patch)
treec1a7011254d39dddead9f31d83779f9c40c073d1 /src/mesa/main/macros.h
parent5727147f894137f194d8efc7adb81b80a9b5acd7 (diff)
mesa: Replace CLAMP_SELF() macro with more obvious CLAMP() usage.
The same code is generated, and readers and static analyzers are happier.
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index f0ea463fb9..55578adf83 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -626,12 +626,6 @@ do { \
/** Clamp X to [MIN,MAX] */
#define CLAMP( X, MIN, MAX ) ( (X)<(MIN) ? (MIN) : ((X)>(MAX) ? (MAX) : (X)) )
-/** Assign X to CLAMP(X, MIN, MAX) */
-#define CLAMP_SELF(x, mn, mx) \
- ( (x)<(mn) ? ((x) = (mn)) : ((x)>(mx) ? ((x)=(mx)) : (x)) )
-
-
-
/** Minimum of two values: */
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )