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

Matt Turner mattst88 at gmail.com
Tue Jun 11 17:23:29 PDT 2013


On Tue, Jun 11, 2013 at 5:08 PM, Eric Anholt <eric at anholt.net> wrote:
> 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

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


More information about the mesa-dev mailing list