Mesa (master): intel: Remove unused IS_POWER_OF_TWO() macro.

Eric Anholt anholt at kemper.freedesktop.org
Tue Jun 18 20:54:04 UTC 2013


Module: Mesa
Branch: master
Commit: 248fddecd8e813b9cb0c98327ab4cd3c836f7398
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=248fddecd8e813b9cb0c98327ab4cd3c836f7398

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jun 11 15:59:07 2013 -0700

intel: Remove unused IS_POWER_OF_TWO() macro.

The is_power_of_two() inline function has been used instead.

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/intel/intel_context.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 552b9cf..eac65ba 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)
 {




More information about the mesa-commit mailing list