[all-commits] [llvm/llvm-project] 8e3b60: [libc] Add fixed point support to printf (#82707)

Michael Jones via All-commits all-commits at lists.llvm.org
Tue Feb 27 11:03:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e3b60540c81354b321018a47bf159ca9b52d776
      https://github.com/llvm/llvm-project/commit/8e3b60540c81354b321018a47bf159ca9b52d776
  Author: Michael Jones <71531609+michaelrj-google at users.noreply.github.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M libc/config/config.json
    M libc/docs/configure.rst
    M libc/docs/dev/printf_behavior.rst
    M libc/fuzzing/stdio/CMakeLists.txt
    A libc/fuzzing/stdio/printf_fixed_conv_fuzz.cpp
    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
    M libc/src/stdio/printf_core/converter_utils.h
    M libc/src/stdio/printf_core/core_structs.h
    A libc/src/stdio/printf_core/fixed_converter.h
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/parser.h
    M libc/src/stdio/printf_core/printf_config.h
    M libc/test/src/stdio/CMakeLists.txt
    M libc/test/src/stdio/sprintf_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] Add fixed point support to printf (#82707)

This patch adds the r, R, k, and K conversion specifiers to printf, with
accompanying tests. They are guarded behind the
LIBC_COPT_PRINTF_DISABLE_FIXED_POINT flag as well as automatic fixed
point support detection.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list