msvcrt: Use Dragon4 algorithm to fix inconsistent rounding behaviour for sprintf and add tests. The Dragon4 algorithm implementation is based on http://www.ryanjuckett.com/programming/printing-floating-point-numbers/.

YongHao Hu christopherwuy at gmail.com
Mon Mar 30 03:28:31 CDT 2015


Excuse me,
Is there anything to do to improve this patch?

Thanks.

On 2015年03月25日 15:46, YongHao Hu wrote:
> Try 3:
> - Superseded Patch 109456.
> - Use appropriate win32 types instead of typedef.
>    (Thanks Dmitry Timoshkov)
>
> Try 2:
> - Superseded Patch 109432
> - Use typedef instead of C99 types
> - Delete useless #ifndef
> - Add memset to test
>
> Try1:
> - 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         | 668 
> ++++++++++++++++++++++++++++++++++++++++++
>  dlls/msvcrt/printf.h          |  43 +--
>  dlls/msvcrt/tests/printf.c    |  96 ++++++
>  dlls/msvcrt/wine_printfloat.h | 246 ++++++++++++++++
>  4 files changed, 1036 insertions(+), 17 deletions(-)
>  create mode 100644 dlls/msvcrt/dragon4.h
>  create mode 100644 dlls/msvcrt/wine_printfloat.h
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150330/3c3103db/attachment.html>


More information about the wine-devel mailing list