[all-commits] [llvm/llvm-project] f9f869: [libc] add printf hexadecimal float conversion

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Jul 8 15:58:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9f8693be31c0489647c6425dd6f3feaecf72ef9
      https://github.com/llvm/llvm-project/commit/f9f8693be31c0489647c6425dd6f3feaecf72ef9
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M libc/src/stdio/printf_core/CMakeLists.txt
    M libc/src/stdio/printf_core/converter.cpp
    M libc/src/stdio/printf_core/converter_atlas.h
    A libc/src/stdio/printf_core/float_hex_converter.h
    M libc/src/stdio/printf_core/parser.cpp
    M libc/test/src/stdio/sprintf_test.cpp

  Log Message:
  -----------
  [libc] add printf hexadecimal float conversion

This patch adds the %a/A conversions to printf, as well as the compiler
flag to disable floating point handling entirely. This will allow our
printf implementation to display every type of argument allowed by
printf, although some formats are still incomplete.

Reviewed By: sivachandra

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




More information about the All-commits mailing list