[all-commits] [llvm/llvm-project] 3befa4: [libc] Make printf decimal long doubles use hex

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed May 3 11:12:10 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3befa46b912272e65a2d8aa0de956e389cfe3a32
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M libc/src/stdio/printf_core/converter.cpp
    M libc/src/stdio/printf_core/float_hex_converter.h

  Log Message:
  [libc] Make printf decimal long doubles use hex

Decimal long doubles are not commonly used, and aren't currently
supported by the algorithm used for decimal float conversions. To avoid
giving incorrect answers, this patch adds a temporary exception to print
long doubles in hexadecimal even when decimal is requested.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D148179

More information about the All-commits mailing list