[libc-commits] [PATCH] D130584: [libc] Add Size Saving for String To Float

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jul 26 09:56:02 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

String to float uses the Eisel-Lemire algorithm for better performance
in most cases, however this requires a very large table. Some
configurations, such as embedded devices, don't care about speed as much
as code size. This patch adds a flag to disable the Eisel-Lemire
algorithm as well as other code size savings for string to float.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130584

Files:
  libc/src/__support/str_to_float.h
  libc/test/src/__support/str_to_float_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130584.447743.patch
Type: text/x-patch
Size: 4772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220726/2821e7e5/attachment-0001.bin>


More information about the libc-commits mailing list