[Intel-gfx] [PATCH i-g-t v2 7/7] tests: Use BIT macro instead of (1<<x)

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Wed Feb 15 12:56:34 UTC 2017


On to, 2017-02-09 at 10:23 -0800, Michel Thierry wrote:
> Mostly done with coccinelle,
> @@
> expression x;
> @@
> (
> - (1<<x)
> + BIT(x)
> > 
> > 
> - (1 << x)
> + BIT(x)
> > 
> > 
> - 1 << x
> + BIT(x)
> > 
> > 
> - (1UL<<x)
> + BIT(x)
> > 
> > 
> - (1UL << x)
> + BIT(x)
> > 
> > 
> - 1UL << x
> + BIT(x)
> > 
> > 
> - (1ULL<<x)
> + BIT_ULL(x)
> > 
> > 
> - (1ULL << x)
> + BIT_ULL(x)
> > 
> > 
> - 1ULL << x
> + BIT_ULL(x)
> )
> 
> v2: Minus a few cases (Chris)
>     Squash lib import in gem_create (Joonas)
> 
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Signed-off-by: Michel Thierry <michel.thierry at intel.com>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list