[libc-commits] [PATCH] D112580: [libc] add fast path to string to float conversion

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Oct 26 16:46:04 PDT 2021


michaelrj created this revision.
michaelrj added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added a project: libc-project.
michaelrj requested review of this revision.

Add the fast path first described by Clinger [1] with additions by Gay [2].
This speeds up conversion by about 10% by handling numbers with fewer digits
more efficiently.

[1] Clinger WD. How to Read Floating Point Numbers Accurately.
SIGPLAN Not 1990 Jun;25(6):92–101. https://doi.org/10.1145/93548.93557.
[2] Gay DM, Correctly rounded binary-decimal and decimal-binary conversions;

1990. AT&T Bell Laboratories Numerical Analysis Manuscript 90-10.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112580

Files:
  libc/src/__support/str_to_float.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112580.382484.patch
Type: text/x-patch
Size: 6347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20211026/4253fb88/attachment.bin>


More information about the libc-commits mailing list