]> Git Repo - qemu.git/commit
replace muldiv64(a, b, c) by (uint64_t)a * b / c
authorLaurent Vivier <[email protected]>
Mon, 9 May 2016 13:24:58 +0000 (15:24 +0200)
committerMichael Tokarev <[email protected]>
Tue, 7 Jun 2016 15:02:49 +0000 (18:02 +0300)
commitc00dc6750f6e825df27aa20fce713a55a4032cc6
tree5bc37f2cc12cfd8cd0484edf344bd67d755d4c71
parentcd1f16f94727f82ea77fcd82c4dad63bb9172a6f
replace muldiv64(a, b, c) by (uint64_t)a * b / c

When "a" and "b" are 32bit values, we don't have to cast
them to 128bit, 64bit is enough.

This patch is the result of coccinelle script
scripts/coccinelle/simplify_muldiv64.cocci

Signed-off-by: Laurent Vivier <[email protected]>
For xtensa PIC:
Acked-by: Max Filippov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/audio/gus.c
hw/xtensa/pic_cpu.c
This page took 0.022868 seconds and 4 git commands to generate.