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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
> Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
> Signed-off-by: Michel Thierry <michel.thierry@xxxxxxxxx>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux