IRainman
b8163709f5
* type usage fix for better performance in any hardware.
2025-11-10 02:41:26 +03:00
IRainman
c8e4d89fef
# unfck lint
2025-11-09 18:15:53 +03:00
IRainman
959c9531ea
# cycles (for and while) cleanup in low level for the best compiler optimization and the best runtime.
2025-11-09 18:13:17 +03:00
IRainman
50fa3ad99e
* code cleanup.
2025-11-09 16:34:42 +03:00
IRainman
9e1d063628
# tests
2025-11-09 00:12:43 +03:00
IRainman
77ef46838c
* try to fix precision error on x86 platform step3.
2025-11-08 19:40:24 +03:00
IRainman
fe0bce5eb7
# const and constexpr fixes
...
# types fixes.
# FASTFLOAT_ASSERT fix.
2025-10-21 21:08:08 +03:00
IRainman
031f7febbe
# tests are updated
2025-10-21 19:31:28 +03:00
Pavel Novikov
88f6c5e367
Added corner cases around max value/infinity
2025-10-04 14:39:00 +03:00
Pavel Novikov
01e505797b
added tests + some refactoring
2025-09-18 21:29:25 +03:00
Pavel Novikov
e12463583f
added lacking overloads to avoid potential ambiguity
2025-09-06 00:12:41 +03:00
Pavel Novikov
20a7383442
renamed the function, cleaned up return type
2025-09-05 13:36:23 +03:00
Pavel Novikov
763558b9ac
cleaned up tests
2025-09-05 13:34:48 +03:00
Pavel Novikov
cc90f240ee
added some tests
2025-09-02 23:03:38 +03:00
Daniel Lemire
717112d257
lint
2025-02-06 20:25:09 -05:00
Daniel Lemire
f0c709e3e4
ignoring failures
2025-02-06 20:24:43 -05:00
Anders Dalvander
f23ced2e4e
fix for supplemental
2024-12-04 01:02:20 +01:00
Anders Dalvander
baaf58d2dd
fix -Werror=maybe-uninitialized
2024-12-04 00:13:20 +01:00
Anders Dalvander
63bbefad6b
templates and types
2024-12-03 23:47:21 +01:00
Anders Dalvander
ac453a091a
overly precise tests for imprecise floats
2024-12-03 23:23:35 +01:00
Anders Dalvander
3b9ff76143
duplicate tests for both float and double
2024-12-03 23:23:34 +01:00
Anders Dalvander
c62b853648
float.rounds_to_nearest
2024-12-03 23:23:34 +01:00
Anders Dalvander
b3acae22ea
fix parse_zero and parse_negative_zero output
2024-12-03 23:23:34 +01:00
Anders Dalvander
74e00e1401
fix double test in float region in basictest
2024-12-03 23:23:34 +01:00
Anders Dalvander
558bec8b9b
fix logging in basictest
2024-12-03 23:23:34 +01:00
Daniel Lemire
c526899951
cleaning.
2024-12-03 23:23:34 +01:00
Daniel Lemire
bfcff49c83
16-bit float support
2024-12-03 23:23:34 +01:00
Anders Dalvander
3146e686d0
introduce equiv_uint_t
2024-12-01 16:36:17 +01:00
Anders Dalvander
1a15c66fb9
harmonize files to use "east const"
...
manually checked modified files for errors, but not committing .clang-format due to the following warning:
>>> Setting `QualifierAlignment` to something other than `Leave`, COULD lead to incorrect code formatting due to incorrect decisions made due to clang-formats lack of complete semantic information. As such extra care should be taken to review code changes made by the use of this option.
2024-11-23 09:46:18 +01:00
Carbo Kuo
d65285a48c
Add Bazel build rules.
2024-11-01 09:16:24 -04:00
Daniel Lemire
5ad6aae0b1
lint
2024-08-14 09:57:47 -04:00
Daniel Lemire
f320619216
Merge pull request #227 from fastfloat/extra_test
...
adding a single test
2024-01-28 10:08:49 -05:00
StefanBruens
7f46adc19c
Make tests depending on supplemental_test_files optional
...
As the supplemental_test_files are quite large, it is useful to make
running the tests depending on it optional.
By default, the tests are kept enabled, but can be switched of by setting
`FASTFLOAT_SUPPLEMENTAL_TEST=OFF`.
Fixes : #232
2023-12-26 02:23:30 +01:00
Daniel Lemire
604424b624
adding a test
2023-12-06 21:17:09 -05: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
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
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
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
Daniel Lemire
252a1c9dce
Minor fix.
2023-02-06 17:22:11 -05:00
Daniel Lemire
09f89895f1
Adding test.
2023-01-10 10:32:59 -05:00
Daniel Lemire
fd9d9effda
More tweaking around clangcl
2022-11-16 15:25:03 -05:00