631 Commits

Author SHA1 Message Date
Daniel Lemire
f320619216
Merge pull request #227 from fastfloat/extra_test
adding a single test
2024-01-28 10:08:49 -05:00
Daniel Lemire
7cbbcee6ed
Merge pull request #233 from StefanBruens/optional_supplemental_tests
Make tests depending on supplemental_test_files optional
2024-01-28 10:08:33 -05:00
Daniel Lemire
68b9475585
Merge pull request #234 from beached/patch-1
Update float_common.h
2023-12-28 08:16:38 -05:00
Darrell Wright
b43f808190
Update float_common.h
The construct !! is a no-op for a bool, op< for uint64_t's.  Removed it and made it an explicit cast to match the operations being performed
2023-12-27 19:43:56 -05:00
Daniel Lemire
b90ba259ef
Update README.md 2023-12-26 16:10:05 -05:00
Daniel Lemire
5c2a4a026a
Update README.md 2023-12-26 16:09:07 -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
f3ff46fd40 version bump v6.0.0 2023-12-14 17:56:17 -05:00
Daniel Lemire
e59e8f547a adding space 2023-12-14 17:54:39 -05:00
Daniel Lemire
8b849ebab0 Documentation regarding the integer types 2023-12-14 17:53:30 -05:00
Daniel Lemire
ede1d6b69e
Merge pull request #231 from mayawarrier/main
from_chars integer parser
2023-12-14 17:34:56 -05:00
Maya Warrier
882a716c12
Explicit curly bracket where suggested
Co-authored-by: Daniel Lemire <daniel@lemire.me>
2023-12-14 16:28:23 -05:00
Maya Warrier
a59a62cb5c
Merge branch 'fastfloat:main' into main 2023-12-13 17:54:05 -05:00
Maya Warrier
bdee16bcad - Add SIMD acceleration to fast_int
- fix MSVC warning
2023-12-13 17:42:30 -05:00
TheRandomGuy146275
26a5b2eb16 Added test case for ignoring leading zeros for all bases
- added: fix incorrect base for leading zeros test

---------

Co-authored-by: Marvin <marvin.wu@mail.utoronto.ca>
Co-authored-by: Maya Warrier <34803055+mayawarrier@users.noreply.github.com>
2023-12-13 17:22:51 -05:00
Maya Warrier
36aaded3dd Fix handling of leading zeros 2023-12-13 17:11:41 -05:00
Daniel Lemire
506b01a236
Merge pull request #230 from mayawarrier/fix-arm-neon-macro
Fix for ARM SIMD
2023-12-13 10:43:18 -05:00
Maya Warrier
1e0a9da538 Change FASTLOAT_ARM64 macro to FASTFLOAT_NEON 2023-12-13 00:56:35 -05:00
Maya Warrier
30b3165520 Fix fast_int test Werrors 2023-12-12 22:45:14 -05:00
Maya Warrier
a30fe866f6 Fix bugs highlighted in tests 2023-12-12 22:35:58 -05:00
Maya Warrier
01e8c50a33 Fix bugs in tests/fast_int.cpp 2023-12-12 22:35:34 -05:00
Maya Warrier
5fcc62a6f5 Merge contributed tests 2023-12-12 22:03:33 -05:00
Maya Warrier
624ba49434 Fix more Werrors
- Werror=conversion,char-subscripts
2023-12-12 21:26:48 -05:00
Marvin
ebc15bec51 Added test case for numbers within range after converted from base 2023-12-12 20:20:05 -05:00
Marvin
0711006266 Fixed messages 2023-12-12 19:23:43 -05:00
Marvin
681eb1ea38 More details to basic test error for debugging 2023-12-12 19:18:07 -05:00
Marvin
5fda2cc240 Debugging results 2023-12-12 19:07:51 -05:00
TheRandomGuy146275
f904694d5d
Merge pull request #1 from mayawarrier/main
merge fast_float with testing
2023-12-12 18:46:42 -05:00
TheRandomGuy146275
e4702e039f Fixing cmake errrors 2023-12-12 17:58:32 -05:00
Marvin
20c9375c5e Added new test cases for out of range errors that cover 8,16,32,64 bits, out of range errors for all bases (64 bit only), and fixed some test cases 2023-12-12 13:59:18 -05:00
Maya Warrier
7a21a8d6d7 Return invalid_argument in more places 2023-12-12 02:36:18 -05:00
Maya Warrier
3d446f1eba Fix gcc werrors 2023-12-12 01:56:24 -05:00
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