900 Commits

Author SHA1 Message Date
Marvin
e60b47455b Added test cases that coverunsigned, out or range errors, char pointers, invalid bases, and out of range bases 2023-12-11 18:17:33 -05:00
Maya Warrier
c9527c2e4f Skip leading zeros 2023-12-11 04:27:22 -05:00
Maya Warrier
122220e2f0 Version 1 of from_chars integer parser 2023-12-11 04:17:26 -05:00
Marvin
2fb59699db Added more test cases that checks for correct errors, base 2, octal, and hex 2023-12-11 01:22:48 -05:00
Marvin
a91521f5a0 Added basic tests for fast_int in fast_int.cpp 2023-12-10 23:40:27 -05:00
Daniel Lemire
604424b624 adding a test 2023-12-06 21:17:09 -05:00
Daniel Lemire
35d523195b
Merge pull request #225 from fastfloat/fix_win32_ci
fix for 32-bit Visual Studio when not set to round to nearest
2023-11-27 16:21:01 -05:00
Daniel Lemire
736561cd99
Merge pull request #224 from Coeur/coeur/input_num
float_common.h:237:52 Value stored to 'input_num' is never read
2023-11-27 15:51:37 -05:00
Daniel Lemire
fda97168f0 casting to avoid warnings 2023-11-27 15:50:47 -05:00
Daniel Lemire
70d8e0ad0e In some cases, Visual Studio, when compiling 32-bit binaries, gets
0*something == -0 even when the 'something' is positive, when the system
is not set to compile to nearest.
2023-11-27 15:44:24 -05:00
Antoine Cœur
c325db1b04 float_common.h:237:52 Value stored to 'input_num' is never read 2023-11-25 18:45:15 +01:00
Daniel Lemire
80400d270e Deactivate Win32 debug ci (VS) 2023-11-13 11:25:19 -05:00
Daniel Lemire
1e2e43c088
Update README.md 2023-11-13 11:14:13 -05:00
Daniel Lemire
c8b8321fd4 bumping version v5.3.0 2023-11-13 10:44:24 -05:00
Daniel Lemire
1dfad243ec
Merge pull request #221 from fastfloat/fortran
Fortran support (with fixes)
2023-09-15 09:51:24 -04:00
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
Maya Warrier
3f250c5a98 Use chars_format instead of parse_rules for parsing as JSON 2023-09-13 20:03:10 -04:00
Maya Warrier
396f41271f Implement JSON rules 2023-09-13 19:19:37 -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
deadalnix
5167a5029d Change smallest_power_of_ten to -64 for floats.
`18446744073709551615e-65` rounds to `0`, and it is the largest possible value with exponent `-65`. Therefore, we can assume the minimal exponent for which we don't round to zero actually is `-64`.
2023-07-12 14:27:46 +00:00
Daniel Lemire
6a390f63e9
Merge pull request #217 from DavidKorczynski/cifuzz-int
Add CIFuzz workflow
2023-07-12 09:54:19 -04:00
David Korczynski
9f913bd835 Add CIFuzz workflow
Signed-off-by: David Korczynski <david@adalogics.com>
2023-07-11 14:29:31 -07:00
Daniel Lemire
33a2f8f203
Merge pull request #214 from Coeur/coeur/leading_zeroes_generic
float_common.h: fix possible misuse of comma operator
2023-07-10 10:59:05 -04:00
Cœur
3e90425e3c code review: FASTFLOAT_CONSTEXPR14 2023-06-12 22:27:31 +02:00
Cœur
f5f64e46cd float_common.h: fix possible misuse of comma operator 2023-06-12 21:05:51 +02:00
Daniel Lemire
84e2cb27e0
Merge pull request #213 from mayawarrier/msvc-v140-fix
Fix for broken MSVC v140 without removing enable_if
2023-06-12 10:55:01 -04:00
Maya Warrier
c5ecb5db9b Fix for MSVC v140 2023-06-11 22:22:06 -04:00
Daniel Lemire
2b2395f9ac Bumping version. v5.2.0 2023-06-10 10:49:39 -04:00
Daniel Lemire
c80ff7c18a
Merge pull request #212 from fastfloat/issue211
Renaming the using for the local type.
2023-06-10 10:49:03 -04:00
Daniel Lemire
a14f8c587e Fix. 2023-06-10 10:48:46 -04:00
Daniel Lemire
eea6fef9a1 tweak 2023-06-10 09:47:48 -04:00
Daniel Lemire
71c2ad1863
Merge pull request #210 from Pharago/main
Fix broken msvc v140
2023-06-10 09:46:54 -04:00
Daniel Lemire
ba328bbf7d Renaming the using for the local type. 2023-06-10 09:44:49 -04:00
Pharago
677231869b Revert "Update .gitignore"
This reverts commit 66740ad46bf0096c3750a9686ec8ec8286adcd92.
2023-06-10 06:23:29 +02:00
Pharago
66740ad46b Update .gitignore 2023-06-10 05:50:18 +02:00
Pharago
b8e3307fbd Fix broken msvc v140
When using msvc v140 (Visual Studio 2015 Toolset), compilation fails.
2023-06-10 05:46:30 +02:00
Daniel Lemire
91edc90464
Merge pull request #209 from fastfloat/arm_neon_opti
ARM NEON optimization (UTF-16 inputs)
2023-06-09 14:41:38 -04:00
Daniel Lemire
3cab724b80 Minor fixes 2023-06-09 12:30:20 -04:00
Daniel Lemire
b88345d06d Fixes 2023-06-09 11:28:51 -04:00
Daniel Lemire
e8c0378d6d Adding ARM NEON optimizations. 2023-06-09 11:19:34 -04:00
Daniel Lemire
bc98c5dfdf
Merge pull request #208 from lemire/other_chars
Bumping version.
2023-06-09 10:54:39 -04:00
Daniel Lemire
b1636bad07 Bumping version. 2023-06-09 10:43:36 -04:00