From 14609d1c87526f49c831d965ebf1720f2e28fcee Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 5 Dec 2010 23:53:47 +0000 Subject: [PATCH] Removed unused BITS_IN_UINT and CLAMP macros. --- src/lib/macros.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/macros.h b/src/lib/macros.h index b69715b2b1..092559c622 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -18,8 +18,6 @@ #define N_ELEMENTS(arr) \ (sizeof(arr) / sizeof((arr)[0])) -#define BITS_IN_UINT (CHAR_BIT * sizeof(unsigned int)) - #define MEM_ALIGN(size) \ (((size) + MEM_ALIGN_SIZE-1) & ~((unsigned int) MEM_ALIGN_SIZE-1)) @@ -33,10 +31,6 @@ #define I_MIN(a, b) (((a) < (b)) ? (a) : (b)) #define I_MAX(a, b) (((a) > (b)) ? (a) : (b)) -#undef CLAMP -#define CLAMP(x, low, high) \ - (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) - /* make it easier to cast from/to pointers. assumes that sizeof(size_t) == sizeof(void *) and they're both the largest datatypes that are allowed to be used. so, long long isn't safe with these. */ -- 2.47.3