fast_float
fast_float copied to clipboard
Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12 and WebKit/Safari
Just FYI, in GCC we've added support for from_chars for the C++23 std::{,b}float16_t support in https://gcc.gnu.org/r13-3592 . We've done it by using an artificial wrapper class for each of those...
Idea is to split parsing from value computation adding a from_chars_advanced function taking result of parsing.
Idea would be to allow for existing parsing code and avoid copy pasting remainder of from_chars_advanced function. Existing parser code would fill the parsed_number_string structure as appropriate.
Windows 11 version 24H2, Rocky Linux 9, RedHat Linux 9, all defaults on x86-64-v2 which means that we have SSSE3, SSE4.1, SSE4.2 and POPCNT. We might be able to include...
Initial work related to issue https://github.com/fastfloat/fast_float/issues/148 It does not yet build.
out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated Enabling `-Wdeprecated-redundant-constexpr-static-def` with warnings as errors causes fast_float to not build on Clang. Fixing this should...
### 🚀 Performance and Code Size Improvements * Optimized parsing logic for use as an **internal lightweight parser** (for example, inside other libraries). * Reduced binary size by conditionally excluding...
Simple change in CMakeLists.txt due to this deprecation warning: ``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake....
Though the C++17 standard has you do a comparison with `std::errc()` to check whether the conversion worked, you can avoid it by casting the result to a `bool` like so:...