[libc-commits] [PATCH] D109261: [libc] add atof, strtof and strtod

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Oct 6 16:20:45 PDT 2021


michaelrj updated this revision to Diff 377720.
michaelrj added a comment.

add a link to the original paper for Eisel-Lemire

update the large scale tester to give more useful feedback, and fix some problems discovered using it.

Current results from running the tester on the full "parse number fxx test data" set:
Total failed conversions: 0
Total conversions off by the least significant bit: 9112
	5242	float low
	3804	float high
	59	double low
	7	double high
Total lines: 5268191

runtime: ~10s when built in debug mode.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109261/new/

https://reviews.llvm.org/D109261

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/stdc.td
  libc/src/__support/CMakeLists.txt
  libc/src/__support/detailed_powers_of_ten.h
  libc/src/__support/high_precision_decimal.h
  libc/src/__support/str_float_conv_utils.h
  libc/src/stdlib/CMakeLists.txt
  libc/src/stdlib/atof.cpp
  libc/src/stdlib/atof.h
  libc/src/stdlib/strtod.cpp
  libc/src/stdlib/strtod.h
  libc/src/stdlib/strtof.cpp
  libc/src/stdlib/strtof.h
  libc/test/src/__support/CMakeLists.txt
  libc/test/src/__support/float_comp_in.txt
  libc/test/src/__support/str_float_conv_utils_test.cpp
  libc/test/src/__support/string_to_float_comparison_test.cpp
  libc/test/src/stdlib/CMakeLists.txt
  libc/test/src/stdlib/atof_test.cpp
  libc/test/src/stdlib/strtod_test.cpp
  libc/test/src/stdlib/strtof_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109261.377720.patch
Type: text/x-patch
Size: 102024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20211006/f7cd5763/attachment-0001.bin>


More information about the libc-commits mailing list