Commit Graph

145 Commits

Author SHA1 Message Date
Matt Borland
a29f6bcd86 Refactor MSVC no warn macros 2024-01-24 11:57:01 +01:00
Matt Borland
4f5ba9eeef Refactor into header versions of src files 2024-01-24 09:46:12 +01:00
Matt Borland
14a1a0ee4f Replace fallback routine with from_chars_strtod 2024-01-22 08:48:35 +01:00
Matt Borland
d607014fe4 Add from_chars_strict to conform with std::errc::result_out_of_range 2024-01-17 10:39:15 +01:00
Matt Borland
1b2d3b566d Revert "Merge pull request #111 from cppalliance/110"
This reverts commit 59b61b1b1a, reversing
changes made to 1927ac946d.
2024-01-17 10:06:22 +01:00
Matt Borland
766733b755 Add nan generation functions to support compilers without builtins 2024-01-08 10:23:21 +01:00
Matt Borland
152200fc35 Use builtins to support older compiler versions 2024-01-08 09:35:39 +01:00
Matt Borland
0eb21dc459 Rearrange logic 2024-01-08 08:48:13 +01:00
Matt Borland
9c7298c3a3 Add 128-bit handling of non-finite values 2024-01-08 08:10:52 +01:00
Matt Borland
97234f79d5 Add 80-bit handling of non-finite values 2024-01-08 08:03:50 +01:00
Matt Borland
cc5c56592a Fix invalid case 2024-01-04 13:43:20 +01:00
Matt Borland
d67cc8321a Change behavior when compiled with BOOST_CHARCONV_STD_ERANGE 2024-01-04 13:30:15 +01:00
Matt Borland
7df51babb8 Remove PPC64 specific macro testing 2023-12-07 12:13:37 +01:00
Matt Borland
b023da054e Add errno value workaround 2023-12-07 11:38:46 +01:00
Matt Borland
dd6ee953fd Fix bfloat macro consistency 2023-10-26 10:49:39 +02:00
Matt Borland
252975a99f Even more casts 2023-10-25 09:44:07 +02:00
Matt Borland
5046bbea4c Fix to_chars_integer sign conversions 2023-08-14 12:37:37 -04:00
Matt Borland
187f233433 Remove duplicate table 2023-08-08 09:44:00 -04:00
Matt Borland
39dc6c3a78 Fix handling of issue #37 2023-08-02 13:16:51 -04:00
Matt Borland
9696c3f3ac Add static_assert for IEEE 754 compliance 2023-08-01 11:05:35 -04:00
Matt Borland
fe0b93584e Remove unused conversion function 2023-07-31 16:11:09 -04:00
Matt Borland
d71c63761d Reset errno before strtold is called 2023-07-07 14:36:29 +02:00
Matt Borland
67d5c6243a Fix return value on failure 2023-07-07 10:39:08 +02:00
Matt Borland
6ed41ab8fa Fix __float128 specialization 2023-07-06 16:57:50 +02:00
Matt Borland
8e9d2fd59a Add __float128 overload 2023-06-26 15:44:10 +02:00
Matt Borland
1ece924e99 Remove GCC workaround for 128-bit systems 2023-06-26 09:57:23 +02:00
Matt Borland
ad077ed9be Change macro for 128-bit int support 2023-06-23 15:59:08 +02:00
Matt Borland
95de15ee94 Add emulated128 from_chars detail overload 2023-06-23 13:29:31 +02:00
Matt Borland
9f0f224b2f Add fallback routine 2023-06-23 10:53:11 +02:00
Matt Borland
9e3e945bd8 Use new algo in from_chars 2023-06-23 10:41:48 +02:00
Matt Borland
c9afd46251 Fix printing of 1 character 2023-06-22 09:16:12 +02:00
Matt Borland
b0a8e5299b Fix non-finite value testing, and add testing 2023-06-21 11:14:45 +02:00
Matt Borland
43a0386a88 Refactor to_chars_hex to remove duplication 2023-06-21 11:09:25 +02:00
Matt Borland
0689eca432 Add bounds checking 2023-06-20 13:31:03 +02:00
Matt Borland
ee5d2f4785 Implement fixed precision for long doubles 2023-06-20 12:31:32 +02:00
Matt Borland
a76c85252c Implement precision arguments for long doubles 2023-06-20 11:26:11 +02:00
Matt Borland
5114152ffb Add precision in scientific mode 2023-06-20 09:57:32 +02:00
Matt Borland
a7c06c30aa Add precision argument to general case 2023-06-19 16:51:00 +02:00
Matt Borland
38f04ba2a2 Add debug macros 2023-06-16 15:19:01 +02:00
Matt Borland
b2e69b6e4a Add fixed formatting handling 2023-06-16 14:47:06 +02:00
Matt Borland
f4496ef9e4 Add 80-bit long double code path in to_chars_hex and add testing 2023-06-15 17:00:57 +02:00
Matt Borland
fad315a535 Add 128 bit hex specialization 2023-06-15 16:26:54 +02:00
Matt Borland
ca7748ba2f Improve fallback path 2023-06-15 11:28:18 +02:00
Matt Borland
d5c7a98a75 Used __float128 as intermediate representation 2023-06-14 14:15:26 +02:00
Matt Borland
326741351a Add std::float128_t overloads 2023-06-14 13:41:31 +02:00
Matt Borland
9081ece448 Improve printing of single character 2023-06-14 13:00:18 +02:00
Matt Borland
ca2021f6b1 Add bounds checking in generic_to_chars 2023-06-13 15:55:40 +02:00
Matt Borland
6456fddcc8 Add __float128 from_chars stub impl 2023-06-13 08:54:52 +02:00
Matt Borland
3808e0ef81 Handle non-finite __float128 values 2023-06-12 16:37:00 +02:00
Matt Borland
d104bda6e1 Refactor handling of non-finite values 2023-06-12 15:20:17 +02:00