[all-commits] [llvm/llvm-project] aa1902: [libc] add basic strtold implementation

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Dec 13 10:40:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa1902f917fa3e9b31036d4ae347e74929d15fa7
      https://github.com/llvm/llvm-project/commit/aa1902f917fa3e9b31036d4ae347e74929d15fa7
  Author: Michael Jones <michaelrj at google.com>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/stdc.td
    M libc/src/__support/str_to_float.h
    M libc/src/stdlib/CMakeLists.txt
    A libc/src/stdlib/strtold.cpp
    A libc/src/stdlib/strtold.h
    M libc/test/src/stdlib/CMakeLists.txt
    A libc/test/src/stdlib/strtold_test.cpp

  Log Message:
  -----------
  [libc] add basic strtold implementation

Due to the differences between the types of long double, this function
is effectively three functions in one. This patch adds basic support for
the types of long double, although it's just using the fast path and the
fallback for the moment. I still need to implement a version of
Eisel-Lemire for performance, but the existing algorithms should be
correct.

Reviewed By: sivachandra, lntue

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




More information about the All-commits mailing list