changeset 12525:f3979da99d5f

Removed unused BITS_IN_UINT and CLAMP macros.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Dec 2010 23:53:47 +0000
parents 12e89e04d690
children ab7deaefa2f5
files src/lib/macros.h
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/macros.h	Sun Dec 05 23:53:25 2010 +0000
+++ b/src/lib/macros.h	Sun Dec 05 23:53:47 2010 +0000
@@ -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. */