diff options
author | malc <av1474@comtv.ru> | 2009-09-18 08:16:03 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-09-18 14:04:36 +0400 |
commit | 4f4cc0efde875ec9fce206c365597878fc4921e7 (patch) | |
tree | b57773b376d9ee7c2b8071847f05c59e1ab78293 /audio/audio.c | |
parent | 68f6dc7ebd377ce92abd1f3a991c792143af23b0 (diff) | |
download | qemu-4f4cc0efde875ec9fce206c365597878fc4921e7.tar.gz qemu-4f4cc0efde875ec9fce206c365597878fc4921e7.tar.bz2 qemu-4f4cc0efde875ec9fce206c365597878fc4921e7.zip |
audio: use muldiv64 where it makes sense
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index d8e54961fe..a3e23b212b 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1878,7 +1878,8 @@ static void audio_init (void) } conf.period.ticks = 1; } else { - conf.period.ticks = get_ticks_per_sec() / conf.period.hertz; + conf.period.ticks = + muldiv64 (1, get_ticks_per_sec (), conf.period.hertz); } e = qemu_add_vm_change_state_handler (audio_vm_change_state_handler, s); |