diff options
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 5d80da6de77..3565b6fb26b 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -293,33 +293,6 @@ extern "C" { /** \name Simple Math Macros * \{ */ -/* avoid multiple access for supported compilers */ -#if defined(__GNUC__) || defined(__clang__) - -# define ABS(a) \ - ({ \ - typeof(a) a_ = (a); \ - ((a_) < 0 ? (-(a_)) : (a_)); \ - }) -# define SQUARE(a) \ - ({ \ - typeof(a) a_ = (a); \ - ((a_) * (a_)); \ - }) -# define CUBE(a) \ - ({ \ - typeof(a) a_ = (a); \ - ((a_) * (a_) * (a_)); \ - }) - -#else - -# define ABS(a) ((a) < 0 ? (-(a)) : (a)) -# define SQUARE(a) ((a) * (a)) -# define CUBE(a) ((a) * (a) * (a)) - -#endif - /* Float equality checks. */ #define IS_EQ(a, b) \ |