qemu-e2k/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
hci-csr.c
hci.c bt: remove muldiv64() 2015-09-25 14:56:22 +02:00
hid.c
l2cap.c l2cap: fix access to freed memory 2014-08-15 19:12:48 +04:00
Makefile.objs
sdp.c bt-sdp: fix broken uuids power-of-2 calculation 2015-04-28 15:36:08 +02:00