[all-commits] [llvm/llvm-project] 47d0c8: [libc] fix strtof/d/ld NaN parsing

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Nov 17 11:01:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47d0c83e1f5fb0826d265f163d00cb57615b89d4
      https://github.com/llvm/llvm-project/commit/47d0c83e1f5fb0826d265f163d00cb57615b89d4
  Author: Michael Jones <michaelrj at google.com>
  Date:   2021-11-17 (Wed, 17 Nov 2021)

  Changed paths:
    M libc/src/__support/str_to_float.h
    M libc/test/src/stdlib/strtof_test.cpp

  Log Message:
  -----------
  [libc] fix strtof/d/ld NaN parsing

Fix the fact that previously strtof/d/ld would only accept a NaN as
having parentheses if the thing in the parentheses was a valid number,
now it will accept any combination of letters and numbers, but will only
put valid numbers in the mantissa.

Reviewed By: sivachandra

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




More information about the All-commits mailing list