aboutsummaryrefslogtreecommitdiff
path: root/scripts/coccinelle/swap_muldiv64.cocci
blob: b48b0d084a3000f9563f03d397545ff2e446ece0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// replace muldiv64(i32, i64, x) by muldiv64(i64, i32, x)
@@
typedef uint64_t;
typedef int64_t;
typedef uint32_t;
typedef int32_t;
{ uint32_t, int32_t, int, unsigned int } a;
{ uint64_t, int64_t, long, unsigned long } b;
expression c;
@@

-muldiv64(a,b,c)
+muldiv64(b,a,c)