Daniel Lemire
7646f819a8
Merge branch 'main' of github.com:allenbarnett5/fast_float_ftn into fortran
2023-09-15 09:43:27 -04:00
Daniel Lemire
e6b370dc2c
Merge pull request #220 from mayawarrier/main
...
Add support for parsing numbers according to JSON format
2023-09-15 09:18:39 -04:00
Maya Warrier
7b1fc2f95d
Add an option to allow inf/nan even in json mode
...
- Most JSON parsers offer this option too
2023-09-14 21:07:22 -04:00
Maya Warrier
ce562d9c65
Disallow inf/nan in json mode
2023-09-14 20:51:26 -04:00
Maya Warrier
2395482ad5
Ignore FASTFLOAT_ALLOWS_LEADING_PLUS for JSON format
2023-09-14 19:50:21 -04:00
Daniel Lemire
cd5160a007
Adding more tests.
2023-09-14 10:32:59 -04:00
Daniel Lemire
a79f2d9841
More tests.
2023-09-14 10:28:08 -04:00
Daniel Lemire
2eb7b2ebda
Adding a couple of tests.
2023-09-14 10:13:55 -04:00
Maya Warrier
4de8d715e6
Add json fmt test
2023-09-13 21:07:40 -04:00
allen.barnett@paperbirchsoftware.com
e22c027544
Allow fast_float to parse strings accepted by the Fortran internal read
...
function.
2023-08-07 08:39:06 -04:00
Daniel Lemire
6d223ab557
Adding C++20 tests in CI.
2023-05-23 09:41:23 -04:00
Daniel Lemire
545c184596
Stack!!!
2023-04-26 16:53:44 -04:00
Daniel Lemire
927eb9bcd2
Merge branch 'main' of https://github.com/Pharago/fast_float into other_chars
2023-04-26 16:40:09 -04:00
Daniel Lemire
ca43e6722e
We need to update some of our exhaustive tests to the new API
2023-04-02 17:43:17 -04:00
Adam Lugowski
ca90e36413
Fix subnormal test fails on GCC 9
2023-03-31 17:09:36 -07:00
Adam Lugowski
37127b022f
Add subnormal numbers to powers of ten table
...
On some platforms std::pow returns 0 instead of a subnormal number with `-ffast-math -O2` compiler options.
2023-03-30 13:14:35 -07:00
Adam Lugowski
bfee511d78
Set errc::result_out_of_range on over/underflow
...
Best-effort values are still returned, such as 0 for underflow and infinity for overflow, but now the returned ec is set to std::errc::result_out_of_range instead of std::errc().
2023-03-29 10:14:46 -07:00
Daniel Lemire
d7ba016c73
Fix.
2023-03-27 13:46:51 -04:00
Daniel Lemire
0394ea1fed
Compile-time evaluation
2023-03-27 13:36:46 -04:00
Daniel Lemire
a662df817f
If we detect that the compiler supports FASTFLOAT_IS_CONSTEXPR, then let us run the tests automatically.
2023-03-26 20:43:33 -04:00
Daniel Lemire
b50a729d93
Merge pull request #182 from leni536/constexpr-from_chars
...
Constexpr from_chars
2023-03-25 17:30:55 -04:00
Lenard Szolnoki
360977f968
Add negative zero parsing test for all rounding modes.
...
This fails on clang.
2023-03-25 19:28:05 +00:00
Lenard Szolnoki
a1a7c4e3e0
Extend verify_options with constexpr test
2023-03-25 18:28:00 +00:00
Lenard Szolnoki
6bd1e776b2
Constexpr isnan
2023-03-24 16:35:25 +00:00
Lenard Szolnoki
24b2fdaad0
Separate verify and verify_runtime macros, extend constexpr checks
...
`verify` runs both runtime and constexpr checks if the constexpr checks
are enabled in cmake.
`verify_runtime` only runs the runtime checks.
2023-03-24 16:18:00 +00:00
Lenard Szolnoki
264414c0b0
Remove default capture with init-capture in hope of fixing MSVC build.
2023-03-12 15:17:14 +00:00
Daniel Lemire
6a3fabc342
Preparing release
2023-03-06 21:02:19 -05:00
Lenard Szolnoki
6732e397d8
Add constexpr testing
...
When enabled, modify `verify` macro to also verify at compile time,
when the arguments are constant expressions.
2023-03-04 22:36:58 +00:00
Lenard Szolnoki
58798ee81f
Fix failing test builds with -Werror=maybe-uninitialized on gcc
...
Apparently the added constexpr makes gcc's control flow analysis to go deeper.
If from_chars returns with error then the out parameter remains
uninitialized. As it's undefined behavior to use its value, it's better
to just skip the rest of the loop in this case.
2023-03-04 20:53:49 +00:00
Daniel Lemire
06333da7fe
Merge branch 'main' into dlemire/adding_bloat_analysis
2023-02-28 17:10:05 -05:00
Daniel Lemire
7f1c4a2f7f
This adds bloat analysis to the tests.
2023-02-28 16:42:48 -05:00
Daniel Lemire
252a1c9dce
Minor fix.
2023-02-06 17:22:11 -05:00
Daniel Lemire
3e2da540ef
Support rccpfastfloat.
2023-01-19 20:28:10 -05:00
Daniel Lemire
09f89895f1
Adding test.
2023-01-10 10:32:59 -05:00
Daniel Lemire
e92c63295c
Update CMakeLists.txt
2023-01-04 12:54:20 -05:00
Joao Paulo Magalhaes
0ba57912ff
Enable tests with cross compilation
2022-12-27 11:09:17 +00:00
Daniel Lemire
eec504ae03
Adding a fast-math test.
2022-11-21 09:53:49 -05:00
Daniel Lemire
fd9d9effda
More tweaking around clangcl
2022-11-16 15:25:03 -05:00
Daniel Lemire
559b89d34d
32-bit clangcl appears to be ridiculous.
2022-11-16 14:59:03 -05:00
Daniel Lemire
d225059873
Fix for Win32+ClangCL
2022-11-16 14:35:31 -05:00
Daniel Lemire
95321767ee
More verbose error report.
2022-11-16 12:29:46 -05:00
Daniel Lemire
2c8e738950
Cleaning.
2022-11-16 12:06:33 -05:00
Daniel Lemire
e958ff4269
Simplified clinger.
2022-11-03 18:51:37 -04:00
Daniel Lemire
b4d7cceb93
Added a couple of tests.
2022-10-02 11:09:08 -04:00
Dirk Stolle
3fddb89508
Fix some typos
2022-08-30 22:55:34 +02:00
Daniel Lemire
a332ec1ca7
Saving.
2022-07-29 11:54:19 -04:00
Daniel Lemire
d797a3a05d
Adding example.
2022-07-29 11:42:20 -04:00
Daniel Lemire
d148241404
Removing CXX20 support
2021-09-20 09:49:23 -04:00
Daniel Lemire
dd04b5ebd7
Merge pull request #107 from mumbleskates/main
...
Testing changes and fixes
2021-09-15 21:26:17 -04:00
Kent Ross
1ad817ef54
Include What You Use
2021-09-15 17:38:54 -07:00