msvcrt: Use Dragon4 algorithm to fix inconsistent rounding behaviour for sprintf and add tests.
YongHao Hu
christopherwuy at gmail.com
Thu Feb 26 09:13:19 CST 2015
Fix bug https://bugs.winehq.org/show_bug.cgi?id=37913 .
The Dragon4 algorithm implementation is based on
http://www.ryanjuckett.com/programming/printing-floating-point-numbers/.
---
dlls/msvcrt/dragon4.h | 670
++++++++++++++++++++++++++++++++++++++++++
dlls/msvcrt/printf.h | 43 +--
dlls/msvcrt/tests/printf.c | 83 +++++-
dlls/msvcrt/wine_printfloat.h | 248 ++++++++++++++++
4 files changed, 1026 insertions(+), 18 deletions(-)
create mode 100644 dlls/msvcrt/dragon4.h
create mode 100644 dlls/msvcrt/wine_printfloat.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-msvcrt-Use-Dragon4-algorithm-to-fix-inconsistent-round.txt
Type: text/x-patch
Size: 37152 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150226/f19091e5/attachment-0001.bin>
More information about the wine-patches
mailing list