mmdevapi: Prevent 64 bit overflow within a few days of audio device use. (try 2)

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Fri Mar 1 03:22:09 CST 2013


Hi,

The idea to replace X * numerator / denominator
by X / den * mul + remainder from euclidian division
came from
http://blog.airsource.co.uk/index.php/2010/03/15/quelle-heure-est-il/

M. Stefaniuc suggested an inline function. The MulDiv64 inline has the benefit
of ensuring unsigned arithmetic, matching GetPosition UINT64 output.
Why does MS QPC use a signed LARGE_INTEGER?!?

Regards,
 Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mmdevapi-Prevent-64-bit-overflow-within-a-few-days.patch
Type: application/octet-stream
Size: 5315 bytes
Desc: 0001-mmdevapi-Prevent-64-bit-overflow-within-a-few-days.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130301/c4c681a8/attachment.obj>


More information about the wine-patches mailing list