qemu/scripts/coccinelle/remove_muldiv64.cocci
Laurent Vivier e9d5150739 scripts: add muldiv64() checking coccinelle scripts
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-06-07 18:02:49 +03:00

7 lines
89 B
Plaintext

// replace muldiv64(a, 1, b) by "a / b"
@@
expression a, b;
@@
-muldiv64(a, 1, b)
+a / b