[all-commits] [llvm/llvm-project] d34b3c: [libc] Add max length argument to decimal to float...

Michael Jones via All-commits all-commits at lists.llvm.org
Wed Mar 6 14:30:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d34b3c9c5ab75c2ed0d7023889a1dcb4ce0a0f99
      https://github.com/llvm/llvm-project/commit/d34b3c9c5ab75c2ed0d7023889a1dcb4ce0a0f99
  Author: Michael Jones <michaelrj at google.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M libc/src/__support/high_precision_decimal.h
    M libc/src/__support/str_to_float.h
    M libc/src/__support/str_to_integer.h
    M libc/test/src/CMakeLists.txt
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/high_precision_decimal_test.cpp
    A libc/test/src/__support/str_to_integer_test.cpp

  Log Message:
  -----------
  [libc] Add max length argument to decimal to float (#84091)

The implementation for from_chars in libcxx is possibly going to use our
decimal to float utilities, but to do that we need to support limiting
the length of the string to be parsed. This patch adds support for that
length limiting to decimal_exp_to_float, as well as the functions it
calls (high precision decimal, str to integer).



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