336 Commits

Author SHA1 Message Date
Daniel Lemire
2cbfc21f8a Avoiding internal name conflict. 2021-04-07 13:39:07 -04:00
Daniel Lemire
a8d49f40f0 This uses the template trick to ensure we get only one definition 2021-04-07 13:34:53 -04:00
Marcin Wojdyr
f21b2f24cb change anonymous namespace to namespace detail (#54) 2021-04-07 15:17:37 +02:00
Eugene Golushkov
87e5a95585 Prevent fast_float::from_chars from parsing whitespaces and leading '+' sign, similar to MSVC and integer LLVM std::from_chars behavior. See C++17 20.19.3.(7.1) and http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0067r5.html 2021-03-04 20:21:45 +02:00
Tim Paine
48d30f789b add support for missing flag on emscripten 2021-03-01 22:43:57 -05:00
Eugene Golushkov
76dec80fbd Parse "nan(n-char-seq-opt)" as required by C++17 20.19.3.7 and C11 7.20.1.3.3. At least MSVC produces nan(ind) and nan(snan), and according to https://reviews.llvm.org/D70631 MSVC implementation seems to became LLVM std::to_chars(). 2021-03-01 20:21:33 +02:00
Daniel Lemire
9d76b043c5 Minor typo. 2021-02-26 11:21:20 -05:00
Neal Richardson
ca0a4646e9
Locate endian header on Solaris 2021-02-17 13:46:04 -08:00
Daniel Lemire
716c87067e Simplifying fix. 2021-01-11 11:24:54 -05:00
Daniel Lemire
c5adf9e4a5 Fix truncate flag. 2021-01-11 11:22:00 -05:00
Daniel Lemire
cf1a4ec2f5 Further tweaking. 2021-01-08 10:09:26 -05:00
Daniel Lemire
192b271c12 Removing dead code 2021-01-07 18:03:33 -05:00
Daniel Lemire
cad8cfdf57 Removing dead code. 2021-01-07 18:01:57 -05:00
Daniel Lemire
a27fcc230d This should be mostly correct. 2021-01-07 17:46:47 -05:00
Daniel Lemire
ca51b646c8
Update float_common.h 2021-01-07 16:44:39 -05:00
Daniel Lemire
002966323c
Update float_common.h 2021-01-07 16:44:07 -05:00
Daniel Lemire
51b27a3324 Trying alternate handling of overflows. 2020-12-31 11:14:48 -05:00
Daniel Lemire
47ffc1303b Removing spurious 's'. 2020-12-29 15:29:46 -05:00
Daniel Lemire
a7d15fd6d0 Fixes https://github.com/fastfloat/fast_float/issues/47 2020-12-29 13:22:37 -05:00
Daniel Lemire
a1a7347464 Minor tweaks to better handle cygwin/clang. 2020-12-22 15:55:48 -05:00
Joao Paulo Magalhaes
e65f977135 fix: never include iostream unless it's absolutely necessary 2020-11-24 00:24:17 +00:00
Daniel Lemire
7ef9d9b7d2 Tweaking cast. 2020-11-23 15:04:48 -05:00
Daniel Lemire
86bc73af9e Need explicit cast. 2020-11-23 13:53:50 -05:00
Daniel Lemire
426dd2a4a6 Merge branch 'main' into dlemire/aqrit_magic 2020-11-23 13:48:06 -05:00
Daniel Lemire
4583e75e3e Merge branch 'main' into dlemire/extended_fast_path 2020-11-22 13:10:07 -05:00
Joao Paulo Magalhaes
037136a966 fix: add bitness for ppc64le 2020-11-21 19:01:26 +00:00
Joao Paulo Magalhaes
ed6664d93e add bitness for s390 2020-11-21 09:08:11 +01:00
Daniel Lemire
7bf5db7216 Tuning. 2020-11-20 17:05:06 -05:00
Daniel Lemire
8fde4bad4e Adding a guard. 2020-11-20 16:09:53 -05:00
Joao Paulo Magalhaes
9afc814fb6 tidy float_common.h: put feature test macros at the top 2020-11-20 09:44:27 +00:00
Joao Paulo Magalhaes
bfa33b3ed1 fix mingw compile errors 2020-11-20 00:48:21 +00:00
Joao Paulo Magalhaes
f7b13da349 fix: readjust full_multiplication() and leading_zeroes() on windows 2020-11-20 00:48:20 +00:00
Joao Paulo Magalhaes
5ce64de524 fix: full 64bit multiplication working on 32bit gcc/clang 2020-11-20 00:48:20 +00:00
Joao Paulo Magalhaes
8a04a06a88 leading_zeroes(): 0 is not a valid input 2020-11-20 00:48:20 +00:00
Joao Paulo Magalhaes
449c628645 __emulu() is needed for mingw32 2020-11-20 00:48:19 +00:00
Joao Paulo Magalhaes
c4693cc86f re #33: win32 is working 2020-11-20 00:48:19 +00:00
Joao Paulo Magalhaes
829ac72f87 re #33: 32bit version. gcc compiles successfully, fails tests. 2020-11-20 00:48:19 +00:00
Daniel Lemire
d521ddf7f7 Let us adjust the powers instead. 2020-11-19 18:15:42 -05:00
Daniel Lemire
1afba556e3 Extending the fast path. 2020-11-17 21:55:01 -05:00
Daniel Lemire
1b5e3f3945 patching be support. (typo) 2020-11-16 12:56:57 -05:00
Daniel Lemire
7ff364b59a This might add support for big endian systems (untested). 2020-11-16 12:04:57 -05:00
Daniel Lemire
8a0a0c4fc1 Being pedantic. 2020-11-15 14:51:54 -05:00
Daniel Lemire
e5917323ec Pedantic member initialization. 2020-11-15 14:47:43 -05:00
Daniel Lemire
e79741ede2 Minor cleaning. 2020-11-12 22:35:32 -05:00
Daniel Lemire
1e92d59997 Sign conversion pedantry. 2020-11-11 20:43:36 -05:00
Daniel Lemire
9c5dac3705 Build with pedantic flags under GNU GCC. 2020-11-11 20:17:18 -05:00
Daniel Lemire
689fba95b5 Minor simplification. 2020-11-10 20:38:23 -05:00
Daniel Lemire
58faaac627 Adding another remark. 2020-11-09 20:23:38 -05:00
Daniel Lemire
d26a697a4d Added remark. 2020-11-09 20:22:45 -05:00
Daniel Lemire
41ee34701b Magical optimizations from @aqrit 2020-11-09 19:06:51 -05:00
Daniel Lemire
cd8f09885b Removing possibly misleading comment. 2020-11-09 18:34:46 -05:00
Daniel Lemire
9a424bde1e Reverting a microoptimization. 2020-11-09 09:51:35 -05:00
Daniel Lemire
045a0b0447
Merge pull request #24 from kitaisreal/fix-odr
Fixed odr with inlining and anonymous namespace
2020-11-09 09:48:49 -05:00
Maksim Kita
68633178d5 Fixed odr with inlining and anonymous namespace 2020-11-08 15:20:11 +03:00
Daniel Lemire
51f813a987 Tweaking. 2020-11-07 16:28:49 -05:00
Daniel Lemire
e3fd438c64 Tweaking. 2020-11-07 16:27:53 -05:00
Daniel Lemire
693fa66fa4 More testing. 2020-11-06 17:28:55 -05:00
Daniel Lemire
dcc883cde8 Merge branch 'main' of github.com:lemire/fast_float into main 2020-11-05 22:58:29 -05:00
Daniel Lemire
afd255b58b Minor update. 2020-11-05 22:58:19 -05:00
Daniel Lemire
4e076c70f9
Merge pull request #18 from lemire/dlemire/minor_styling
Fixing minor style issues.
2020-11-05 19:04:59 -05:00
Daniel Lemire
741e68ce61 Fixes https://github.com/lemire/fast_float/issues/19 2020-11-05 16:32:19 -05:00
Daniel Lemire
9b102a95ab Actually, 19. 2020-11-02 21:46:31 -05:00
Daniel Lemire
288efd35eb Minor cleaning. 2020-11-02 21:42:01 -05:00
Daniel Lemire
078095d1e3 Patching. 2020-11-02 20:17:11 -05:00
Daniel Lemire
83154a24ad Fixing minor style issues. 2020-11-02 14:55:17 -05:00
Daniel Lemire
48c017aa96 Rounded toward one, not zero. 2020-10-31 10:40:05 -04:00
Daniel Lemire
022118e5d0 Minor logical fix. 2020-10-30 14:56:15 -04:00
Daniel Lemire
26ecdea26c Fixing comment. 2020-10-30 11:39:31 -04:00
Daniel Lemire
71e0355de8 fixing a comment. 2020-10-29 16:54:35 -04:00
Daniel Lemire
e8e1a01733 cout 2020-10-29 16:47:33 -04:00
Daniel Lemire
f7d3cdc426 Minor fix. 2020-10-29 16:40:20 -04:00
Daniel Lemire
70bb48c5c1
Update simple_decimal_conversion.h 2020-10-27 21:39:47 -04:00
Daniel Lemire
47d3d443d8 Minor fix. 2020-10-27 21:26:11 -04:00
Daniel Lemire
8559cfa73f Some optimization. 2020-10-27 21:11:19 -04:00
Daniel Lemire
c53bfc4176 Minor tweak. 2020-10-27 20:10:42 -04:00
Daniel Lemire
eb1103393e Minor tuning. 2020-10-27 19:34:21 -04:00
Daniel Lemire
05ad45dfb5 Let us try the long path. 2020-10-27 18:26:16 -04:00
Daniel Lemire
644b05989d
Merge pull request #14 from lemire/dlemire/issue9
issue 9
2020-10-27 16:27:58 -04:00
Daniel Lemire
7ec9b70dcf Fixing https://github.com/lemire/fast_float/issues/9 2020-10-27 16:10:48 -04:00
Daniel Lemire
390eed3b03 Mising file. 2020-10-27 16:06:54 -04:00
Daniel Lemire
dad0ee3a8f Renaming 2020-10-27 16:05:09 -04:00
Daniel Lemire
fa1242c97e Fixing issue 8 2020-10-27 15:41:31 -04:00
Daniel Lemire
f3b7466d4d
Update thompson_tao.h 2020-10-23 20:10:25 -04:00
Daniel Lemire
59f4535adf This branch improves portability (under Windows). 2020-10-21 16:44:54 -04:00
Daniel Lemire
8a43fdb6a1 Minor fix (credit: @pitrou) 2020-10-19 15:11:44 -04:00
Daniel Lemire
1701be0224 First commit 2020-10-19 12:38:13 -04:00