[Mesa-dev] [PATCH] intel: Remove unused IS_POWER_OF_TWO() macro.

Eric Anholt eric at anholt.net
Tue Jun 11 17:08:27 PDT 2013


The is_power_of_two() inline function has been used instead.
---
 src/mesa/drivers/dri/intel/intel_context.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 5420e76..1002dcb 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -380,8 +380,6 @@ extern char *__progname;
  */
 #define ROUND_DOWN_TO(value, alignment) ((value) & ~(alignment - 1))
 
-#define IS_POWER_OF_TWO(val) (((val) & (val - 1)) == 0)
-
 static INLINE uint32_t
 U_FIXED(float value, uint32_t frac_bits)
 {
-- 
1.8.3.rc0



More information about the mesa-dev mailing list