BSD Ports

math/fast_float 8.2.10 NetBSD

Number parsing library

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
2adabf44aa
License
mit
Categories
math, devel
Package size
44.2 KiB, 177.0 KiB installed

Description

The fast_float library provides fast header-only implementations for the C++ from_chars functions for float and double types as well as integer types. These functions convert ASCII strings representing decimal values (e.g., 1.3e10) into binary types. We provide exact rounding (including round to even). In our experience, these fast_float functions many times faster than comparable number-parsing functions from existing C++ standard libraries.

In the other systems

SystemPortVersion
NetBSDmath/fast_float8.2.10
FreeBSDmath/fast_float8.3.0
DragonFlymath/fast_float8.0.2
MidnightBSDmath/fast_float6.1.3

Install

Binary package:

pkgin install fast_float

From pkgsrc:

cd /usr/pkgsrc/math/fast_float && make install clean

Dependencies

No port depends on this one.

Commit history 3

DateCommitCreditsLog message
2adabf44aa wiz fast_float: update to 8.3.2.
avoid signed negation overflow in integer_times_pow10 by @sahvx655-wq in #421 avoid signed overflow in is_integer on negative wchar_t units by @sahvx655-wq in #422
4b4a793651 adam fast_float: updated to 8.3.1
8.3.1 Keep chars_format::javascript out of the common hot path Restore the simple loop in fastfloat_strncasecmp Fold the format at compile time under clang, mark cold checks unlikely Fix std::float16_t rounding of subnormal ties and fast-path overflow Average branch misses over the repetitions in the benchmark drop the unreachable tail of parse_mantissa CI: pin Alpine to v3.22 to fix setup-alpine failures Reorder parsed_number_string_t fields to avoid padding Add manually triggered release workflow; fix on-release asset upload
46cb84278a adam fast_float: updated to 8.3.0
8.3.0 New chars_format::javascript format (ECMAScript DecimalLiteral): like JSON, but the integer part may be empty (.5) and the fractional part may be empty (5., 5.e3); leading zeros, inf and nan are rejected. New chars_format::javascript_sloppy format: additionally accepts sloppy-mode NonOctalDecimalIntegerLiteral (08.5 is 8.5). A legacy octal literal (0775) is rejected with the new parse_error::legacy_octal_integer_part so it can be parsed in base 8. Faster integer-part scanning (4-digit SWAR on GCC) and skipping the rounding-mode probe for long mantissas Avoid old-style casts Fix compatibility with min()/max() macros Guard is_space against negative signed code units docs: fix strtod function name in README