Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Fix Off By One Errors In Printf Long Double #66957

Merged

Commits on Sep 20, 2023

  1. [libc] Fix Off By One Errors In Printf Long Double

    Two major off-by-one errors are fixed in this patch. The first is in
    float_to_string.h with length_for_num, which wasn't accounting for the
    implicit leading bit when calculating the length of a number, causing
    a missing digit on 80 bit float max. The other off-by-one is the
    ryu_long_double_constants.h (a.k.a the Mega Table) not having any
    entries for the last POW10_OFFSET in POW10_SPLIT. This was also found on
    80 bit float max. Finally, the integer calculation mode was using a
    slightly too short integer, again on 80 bit float max, not accounting
    for the mantissa width. All of these are fixed in this patch.
    michaelrj-google committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    5204a47 View commit details
    Browse the repository at this point in the history