[all-commits] [llvm/llvm-project] 2cd20a: [libc] tighten strtofloat cutoffs

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Oct 26 11:17:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cd20ad90e36d7982b6e882641f87a3e8965e0f7
      https://github.com/llvm/llvm-project/commit/2cd20ad90e36d7982b6e882641f87a3e8965e0f7
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M libc/src/__support/str_to_float.h

  Log Message:
  -----------
  [libc] tighten strtofloat cutoffs

When a number for strtofloat has an exponent that's too big or small, it
doesn't need to be calculated precisely since it is guaranteed to be
either INF or 0.0. This tightens those cutoffs to improve performance.

Reviewed By: sivachandra

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




More information about the All-commits mailing list