repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qapi/qdev.json: fix DEVICE_DELETED parameters doc
[qemu.git]
/
scripts
/
coccinelle
/
simplify_muldiv64.cocci
blob
3d7c9744aa266a32cbd50d61a2a8b4139d388712
1
// replace muldiv64(i32, i32, x) by (uint64_t)i32 * i32 / x
2
@@
3
typedef uint32_t;
4
typedef int32_t;
5
{ uint32_t, int32_t, int, unsigned int } a, b;
6
typedef uint64_t;
7
expression c;
8
@@
9
10
-muldiv64(a,b,c)
11
+(uint64_t) a * b / c