893 Commits

Author SHA1 Message Date
Olivier Le Doeuff
ab406c7c0b 🔨 add library ALIAS FastFloat::fast_float
This give same target name if library is found with find_package, or added via add_subdirectory
2022-09-26 11:56:07 +02:00
Olivier Le Doeuff
696f5299f0 🔨 Don't write to global CMAKE_CXX_STANDARD
Instead use modern target_compile_features with cxx_std_11
2022-09-26 11:55:45 +02:00
Olivier Le Doeuff
3c1190cd85 🔨 Introduce FASTFLOAT_INSTALL to make install optional
When using fast_float as a PRIVATE dependency, it is not required to install it.
This flag give user using fastfloat with add_subdirectory the opportunity to disable install target
Default behavior is conserved since FASTFLOAT_INSTALL is ON
2022-09-26 11:54:03 +02:00
Daniel Lemire
bc3be12530
Merge pull request #140 from striezel-stash/fix-typos
Fix some typos
2022-08-31 10:29:48 -04:00
Dirk Stolle
3aaf22e14d update actions/checkout in GitHub Actions to v3 2022-08-30 23:03:10 +02:00
Dirk Stolle
3fddb89508 Fix some typos 2022-08-30 22:55:34 +02:00
Daniel Lemire
d4dd12f8cf
Update README.md 2022-08-12 11:36:35 -04:00
Daniel Lemire
6876616f0f
Update float_common.h v3.5.1 2022-08-04 15:05:22 -04:00
Daniel Lemire
ac81b01696
Added __EMSCRIPTEN__ patch v3.5.0 2022-08-04 13:58:48 -04:00
Daniel Lemire
a332ec1ca7 Saving. 2022-07-29 11:54:19 -04:00
Daniel Lemire
d7c1dbc889 Merge branch 'main' of github.com:fastfloat/fast_float 2022-07-29 11:42:31 -04:00
Daniel Lemire
d797a3a05d Adding example. 2022-07-29 11:42:20 -04:00
Daniel Lemire
6283cf76c5
Merge pull request #126 from fargies/main
python: set file encoding
2022-07-29 11:15:21 -04:00
Daniel Lemire
cfb44c2592
Update README.md 2022-06-29 14:05:21 -04:00
Daniel Lemire
f2082bf747
Update README.md 2022-03-31 10:18:12 -04:00
Daniel Lemire
8e53c41385
Merge pull request #130 from fastfloat/dlemire/dropping2016
Dropping Windows 2016.
2022-03-19 07:59:25 -04:00
Daniel Lemire
7a17c54269 Dropping it. 2022-03-19 00:29:57 -04:00
Daniel Lemire
708224bc3e Dropping Windows 2016. 2022-03-19 00:28:06 -04:00
Daniel Lemire
b467215b4d
Update README.md 2022-03-19 00:14:13 -04:00
Daniel Lemire
090e500618
Merge pull request #129 from xvitaly/fix-arch
Export CMake targets as architecture independent
2022-03-09 17:40:20 -05:00
Vitaly Zaitsev
5738f18952
Export CMake targets as architecture independent.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-03-05 16:05:28 +01:00
Daniel Lemire
ebfbea4f07
Merge pull request #127 from xvitaly/fix-installation
Fixed installation on other than Ubuntu GNU/Linux distributions
2022-03-03 09:41:18 -05:00
Vitaly Zaitsev
17bcdcef02
Fixed installation on other than Ubuntu GNU/Linux distributions.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-03-03 10:12:55 +01:00
Fargier Sylvain
78edcbb9e2 python: set file encoding
- on some containers LC_ALL is not set, python fallsback on ascii
  encoder, which fails on AUTHORS file
2022-03-03 08:27:21 +01:00
Daniel Lemire
632cf9b8c8
Merge pull request #128 from fastfloat/dlemire/upgradevs17
Trying to upgrade to vs17
2022-03-02 22:46:07 -05:00
Daniel Lemire
ca9be545c3 Trying to upgrade to vs17 2022-03-02 22:39:54 -05:00
Daniel Lemire
32d21dcecb
Merge pull request #122 from jwakely/patch-1
Fix deduction failure for std::min call
2022-01-18 14:30:38 -05:00
Daniel Lemire
d3b164eb52
Merge pull request #123 from jwakely/endian
Make endianness detection more portable
2022-01-18 14:29:42 -05:00
Jonathan Wakely
61f4840188 Make endianness detection more portable
The current check for endianness fails on platforms using newlib as the
C library, because it provides <machine/endian.h> not <endian.h>. This
could be fixed by adding `|| defined(__NEWLIB__)` to the check for
targets that provide <machine/endian.h> (i.e. BSD-like targets).

A more portable solution is to just check if the compiler has already
defined the necessary macros (which is true for GCC and Clang and Intel,
at least). Then no header is needed, and it works for platforms that
aren't explicitly listed in the conditionals.
2022-01-18 10:17:01 +00:00
Jonathan Wakely
1ccabed64c Fix deduction failure for std::min call
This assumes that the literal `64` of type `int` has the same type as
the `int32_t` typedef, which is never true for targets with 16-bit
`int`, and isn't guaranteed to be true even with 32-bit `int`.
2022-01-18 10:12:57 +00:00
Daniel Lemire
b15abc9238
Update README.md 2022-01-16 21:04:50 -05:00
Daniel Lemire
b7f9d6ca39 Version 3.4.0 v3.4.0 2021-11-30 15:53:33 -05:00
Daniel Lemire
62a8dba55a
Merge pull request #118 from pitrou/issue-117
Fix #117: compilation warning with gcc 6.3.0
2021-11-30 14:58:33 -05:00
Antoine Pitrou
133099ab4e Fix #117: compilation warning with gcc 6.3.0
Fix the following warning:
```
/arrow/cpp/src/arrow/vendored/fast_float/digit_comparison.h:62:50: error: right shift count >= width of type [-Werror=shift-count-overflow]
       am.power2 = int32_t((bits & exponent_mask) >> binary_format<T>::mantissa_explicit_bits());
                           ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2021-11-30 20:35:09 +01:00
Daniel Lemire
d35368cae6
Update README.md 2021-10-23 18:04:22 -04:00
Daniel Lemire
b9861e4190 Version 3.3 2021-10-19 14:45:19 -04:00
Daniel Lemire
a2fa7863fd
Merge pull request #116 from SamuelLongchamps/licenses_compliance
Added dual license option, proper copyright
2021-10-19 14:11:50 -04:00
Samuel Longchamps
38b5900fd2 Added dual license option, proper copyright
Fixed #115
2021-10-18 22:41:57 -04:00
Daniel Lemire
052975dd5f
Update README.md 2021-09-21 11:50:07 -04:00
Daniel Lemire
d35f404a15 Version bump. v3.2.0 2021-09-20 09:55:14 -04:00
Daniel Lemire
6d768256f1
Merge pull request #112 from fastfloat/dlemire/remove_cxx20
Removing CXX20 support
2021-09-20 09:54:00 -04:00
Daniel Lemire
d148241404 Removing CXX20 support 2021-09-20 09:49:23 -04:00
Daniel Lemire
dd04b5ebd7
Merge pull request #107 from mumbleskates/main
Testing changes and fixes
2021-09-15 21:26:17 -04:00
Kent Ross
1ad817ef54 Include What You Use 2021-09-15 17:38:54 -07:00
Daniel Lemire
1663effbcb
Merge pull request #108 from mumbleskates/cleanup-dtoa
Delete unused dtoa.c
2021-09-15 10:25:55 -04:00
Kent Ross
99d475ba9b Delete unused dtoa.c 2021-09-14 22:33:36 -07:00
Kent Ross
6ec3ace497 Fix long_test and add it to the non-exhaustive test suite 2021-09-14 22:22:52 -07:00
Kent Ross
3219e3ce4c Move fast tests to the non-exhaustive test set 2021-09-14 22:22:52 -07:00
Daniel Lemire
af4e24a30f Bump version. v3.1.0 2021-09-14 21:32:14 -04:00
Daniel Lemire
b334317dd2 Minor fixes 2021-09-14 21:31:34 -04:00