Sign in
qemu
/
qemu
/
c21eae1ccc782440f320accb6f90c66cb8f45ee9
/
.
/
scripts
/
coccinelle
/
simplify_muldiv64.cocci
blob: 3d7c9744aa266a32cbd50d61a2a8b4139d388712 [
file
] [
log
] [
blame
]
// replace muldiv64(i32, i32, x) by (uint64_t)i32 * i32 / x
@@
typedef
uint32_t
;
typedef
int32_t
;
{
uint32_t
,
int32_t
,
int
,
unsigned
int
}
a
,
b
;
typedef
uint64_t
;
expression c
;
@@
-
muldiv64
(
a
,
b
,
c
)
+(
uint64_t
)
a
*
b
/
c