Marc-André Lureau <marcandre.lur...@redhat.com> wrote: > I used a the following coccinelle script: > > @@ > expression e1; > @@ > - ((e1) + (3)) / (4) * (4) > + ROUND_UP(e1,4) > > @@ > expression e1; > expression e2; > @@ > -(ROUND_UP(e1,e2)) > +ROUND_UP(e1,e2) > > I tried with various other values (4, 8, 16, 32), but got only the > matches in this patch. > > Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>