aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_template.h
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-18 08:16:03 +0400
committermalc <av1474@comtv.ru>2009-09-18 14:04:36 +0400
commit4f4cc0efde875ec9fce206c365597878fc4921e7 (patch)
treeb57773b376d9ee7c2b8071847f05c59e1ab78293 /audio/audio_template.h
parent68f6dc7ebd377ce92abd1f3a991c792143af23b0 (diff)
downloadqemu-4f4cc0efde875ec9fce206c365597878fc4921e7.zip
qemu-4f4cc0efde875ec9fce206c365597878fc4921e7.tar.gz
qemu-4f4cc0efde875ec9fce206c365597878fc4921e7.tar.bz2
audio: use muldiv64 where it makes sense
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio_template.h')
-rw-r--r--audio/audio_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h
index e65d834..70c4a88 100644
--- a/audio/audio_template.h
+++ b/audio/audio_template.h
@@ -556,7 +556,7 @@ uint64_t glue (AUD_get_elapsed_usec_, TYPE) (SW *sw, QEMUAudioTimeStamp *ts)
return 0;
}
- return (delta * sw->hw->info.freq) / 1000000;
+ return muldiv64 (delta, sw->hw->info.freq, 1000000);
}
#undef TYPE