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_template.h | |
parent | 68f6dc7ebd377ce92abd1f3a991c792143af23b0 (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h index e65d834ac9..70c4a8818b 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 |