IRainman
23a1367509
Merge branch 'main' of https://github.com/IRainman/fast_float
2025-03-09 03:41:37 +03:00
IRainman
c2daa8a614
Added FASTFLOAT_ASSUME for support attribute [[assume]] is declared in P1774
2025-03-09 03:41:27 +03:00
HedgehogInTheCPP
ac22204bcc
Update README.md
...
Added examples of usage FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN macros and documented allow_leading_plus and skip_white_space options
2025-03-09 02:40:28 +03:00
IRainman
f496321570
Completely remove deprecated macroses FASTFLOAT_ALLOWS_LEADING_PLUS and FASTFLOAT_SKIP_WHITE_SPACE, please use options.
...
Compilation fix when FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN isn't defined.
2025-03-09 02:37:46 +03:00
IRainman
ae29a0dbe5
PVS-Studio founds some errors, I fixed it.
2025-03-07 20:39:20 +03:00
IRainman
388426e35a
fix type conversion warning.
2025-03-07 15:06:44 +03:00
IRainman
aba93f306f
Additional compile time cleanup. When FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN is enabled we assume that we are in parser code with external loop that checks bounds.
...
Function cpp20_and_in_constexpr() now is really compile time evaluated. TODO fix warnings.
2025-03-07 14:51:20 +03:00
IRainman
bc3f331938
# cleanup.
2025-03-06 23:02:50 +03:00
IRainman
7a38e1bc75
fix for 32 bit build. completely done. All other parser mode also work fine.
2025-03-06 22:47:47 +03:00
IRainman
9ebac23081
Added a config option FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN for faster and more compact code parsing numbers with input support only positive C/C++ style numbers without nan or inf. That case is very useful in mathematical applications, game development, CSS parsing, embedded code, etc...
...
Additional improve in constant initialization.
2025-03-06 22:25:05 +03:00
IRainman
28795646ab
more const
2025-03-06 19:43:47 +03:00
IRainman
e35e7c7040
Merge branch 'main' of https://github.com/IRainman/fast_float
2025-03-06 18:33:08 +03:00
IRainman
63f6abebdf
* Added an option disallow_leading_sign and stronger constexpr / consteval, also significantly reduce register pressure by reducing copy of constant data.
2025-03-06 18:29:16 +03:00
IRainman
b0b1954c87
* Added a config macro FASTFLOAT_DISALLOW_ANY_LEADING_SYMBOLS_INCLUDE_SIGN and FASTFLOAT_DISALLOW_NAN. This both allow to significantly reduce code size and speedup your code when you use fast_float as a part of your parser.
2025-03-05 23:21:24 +03:00
Daniel Lemire
3c5b166f6c
Merge pull request #306 from fastfloat/dependabot/github_actions/github-actions-559242db6c
...
Bump uraimo/run-on-arch-action from 2 to 3 in the github-actions group
2025-03-03 15:58:21 +00:00
dependabot[bot]
c584342aa5
Bump uraimo/run-on-arch-action from 2 to 3 in the github-actions group
...
Bumps the github-actions group with 1 update: [uraimo/run-on-arch-action](https://github.com/uraimo/run-on-arch-action ).
Updates `uraimo/run-on-arch-action` from 2 to 3
- [Release notes](https://github.com/uraimo/run-on-arch-action/releases )
- [Commits](https://github.com/uraimo/run-on-arch-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: uraimo/run-on-arch-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 00:21:03 +00:00
dankmeme01
b7b17e6cac
improve check for /permissive- flag
2025-02-26 14:49:12 +01:00
dankmeme01
810a750306
fix /permissive- flag casuing a compile error on clang for windows
2025-02-26 12:18:16 +01:00
Anders Dalvander
d28a3320c2
Merge pull request #303 from biojppm/fix_wundef
...
Fix -Wundef warnings seen in gcc 4.8
2025-02-13 13:24:47 +01:00
Joao Paulo Magalhaes
3e9dc96eb4
Fix -Wundef warnings seen in gcc 4.8 and 4.9
2025-02-13 08:45:11 +00:00
Daniel Lemire
96067ad107
Merge pull request #302 from biojppm/fix_wundef
...
fix warning from -Wundef
2025-02-12 19:41:56 -05:00
Joao Paulo Magalhaes
9cfa5ff4a0
fix warnings from -Wundef
2025-02-12 23:51:44 +00:00
Daniel Lemire
77cc847c84
pushing version change
v8.0.0
2025-02-08 11:49:58 -05: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
Daniel Lemire
7a5ee5af60
Merge pull request #296 from dalle/dalle/float16
...
16-bit float support
2025-02-06 19:41:37 -05:00
Daniel Lemire
1d50f57dd9
better wording.
2025-02-06 00:16:28 -05:00
Daniel Lemire
3a74bfb500
Merge pull request #299 from fastfloat/document_bench
...
documenting benchmarks
2025-02-05 19:53:33 -05:00
Daniel Lemire
babfa8b85c
documenting benchmarks
2025-02-05 19:52:55 -05:00
Daniel Lemire
482cc1f251
Merge pull request #298 from jrade/main
...
Silenced Visual Studio compiler warning
2025-01-16 15:55:12 -05:00
Johan Råde
d4d5748ec8
Silenced Visual Studio compiler warning
...
This code caused a C4127 "conditional expression is constant" compiler warning
when compiled with Visual Studio at warning level 4 with T a signed integer type.
2025-01-16 16:12:34 +01:00
Daniel Lemire
be9a8453c4
more iterations
2024-12-13 22:54:04 -05:00
Anders Dalvander
87aae63ed7
readme updates for std::float16_t and std::bfloat16_t
2024-12-04 21:12:25 +01:00
Anders Dalvander
dc39efa49d
readme fix for skip_white_space and allow_leading_plus
2024-12-04 21:03:11 +01:00
Anders Dalvander
ce274f7051
include and order types largerst to smallest
2024-12-04 10:17:05 +01:00
Anders Dalvander
7226c00490
cleanup
2024-12-04 09:35:32 +01:00
Anders Dalvander
2a6c2604b5
check for IEEE 754 compliance
2024-12-04 09:34:34 +01: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
62f526dfd3
fix -Werror=conversion
2024-12-03 23:52:57 +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
da819feb74
back to std::bit_cast
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
Anders Dalvander
8cee025082
add powers_of_ten/max_mantissa for float16_t/bfloat16_t
2024-12-03 23:23:34 +01:00
Daniel Lemire
6f8fd6728d
make it build
2024-12-03 23:23:34 +01:00