Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-07 07:24:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-07 07:29:27 +0400
commitf64b3732bed60a0d4404748709611a5123e5d8ef (patch)
tree3a029f2dc31fcd2f54a45e483d2c135153d3f1ab /source/blender/blenlib/BLI_math_base.h
parent69065b5b2c4119911dc49f9ee773fded57dcff51 (diff)
Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABS
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r--source/blender/blenlib/BLI_math_base.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h
index 6d37f794ce2..99d9397f218 100644
--- a/source/blender/blenlib/BLI_math_base.h
+++ b/source/blender/blenlib/BLI_math_base.h
@@ -183,13 +183,6 @@ static const int NAN_INT = 0x7FC00000;
} (void)0
#endif
-#ifndef CLAMP
-# define CLAMP(a, b, c) { \
- if ((a) < (b)) (a) = (b); \
- else if ((a) > (c)) (a) = (c); \
-} (void)0
-#endif
-
#if BLI_MATH_DO_INLINE
#include "intern/math_base_inline.c"
#endif