xemu/hw/bt
Laurent Vivier fdfea124f9 bt: remove muldiv64()
Originally, timers were ticks based, and it made sense to
add ticks to current time to know when to trigger an alarm.

But since commit:

7447545 change all other clock references to use nanosecond resolution accessors

All timers use nanoseconds and we need to convert ticks to nanoseconds.

As get_ticks_per_sec() is 10^9,

    a = muldiv64(b, get_ticks_per_sec(), 100);
    y = muldiv64(x, get_ticks_per_sec(), 1000000);

can be converted to

    a = b * 10000000;
    y = x * 1000;

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2015-09-25 14:56:22 +02:00
..
core.c Preparation for usb-bt-dongle conditional build 2013-09-10 11:14:41 +02:00
hci-csr.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
hci.c bt: remove muldiv64() 2015-09-25 14:56:22 +02:00
hid.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
l2cap.c l2cap: fix access to freed memory 2014-08-15 19:12:48 +04:00
Makefile.objs hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
sdp.c bt-sdp: fix broken uuids power-of-2 calculation 2015-04-28 15:36:08 +02:00