mirror of
https://github.com/qemu/qemu.git
synced 2024-12-12 13:13:51 +08:00
e9d5150739
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
12 lines
220 B
Plaintext
12 lines
220 B
Plaintext
// 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
|