Matt Borland
|
c66100bc90
|
Use boost.config types
|
2023-02-10 10:55:52 -08:00 |
|
Matt Borland
|
256d0fe81a
|
Use decompose32 instead of calling 64-bit impl
|
2023-02-10 09:15:59 -08:00 |
|
Matt Borland
|
f23cf8db75
|
Merge remote-tracking branch 'origin/develop' into 128_to_chars
|
2023-02-09 09:56:05 -08:00 |
|
Matt Borland
|
6de3ba1028
|
Merge pull request #15 from mborland/fix_develop
Fix UB on develop
|
2023-02-09 09:35:41 -08:00 |
|
Matt Borland
|
06a00852b1
|
Add missing header
|
2023-02-09 09:26:18 -08:00 |
|
Matt Borland
|
70cdcf49c9
|
Disable MSVC warning C4146
|
2023-02-09 09:23:22 -08:00 |
|
Matt Borland
|
e18205f383
|
Use unsigned integer as the return type in apply sign
|
2023-02-09 09:13:12 -08:00 |
|
Peter Dimov
|
8a29575a8d
|
Add stub implementations for long double
|
2023-02-09 18:40:47 +02:00 |
|
Peter Dimov
|
c492e9c991
|
Update limits to take into account the fp max exponent
|
2023-02-09 18:32:56 +02:00 |
|
Peter Dimov
|
e8ce6b08e2
|
Definitions of constexpr members are allowed but deprecated in C++17
|
2023-02-09 02:11:37 +02:00 |
|
Peter Dimov
|
8ef71df436
|
Add definitions of limits constants
|
2023-02-09 01:55:13 +02:00 |
|
Peter Dimov
|
1aed8dfa4c
|
Add limits.hpp to charconv.hpp
|
2023-02-09 01:42:33 +02:00 |
|
Peter Dimov
|
89107b55a8
|
Change limits<T> and update test/limits.cpp to test it
|
2023-02-09 01:21:26 +02:00 |
|
Matt Borland
|
ae368af252
|
Use existing decomposition methods so function can be constexpr
|
2023-02-08 11:48:26 -08:00 |
|
Peter Dimov
|
66d2acaa13
|
Add missing inlines
|
2023-02-08 21:39:57 +02:00 |
|
Peter Dimov
|
da25d61248
|
Activate float/double tests in roundtrip.cpp; add stub implementations of from_chars and to_chars to make them pass
|
2023-02-08 21:21:28 +02:00 |
|
Matt Borland
|
ecd8ddb709
|
Add limits specialization
|
2023-02-08 10:39:44 -08:00 |
|
Matt Borland
|
7671580028
|
Improve macros
|
2023-02-08 10:11:53 -08:00 |
|
Matt Borland
|
d1fc7b4e60
|
Implementation for 128-bit ints
|
2023-02-08 09:50:36 -08:00 |
|
Matt Borland
|
280692cc86
|
Change to function notation for pre C++17
|
2023-02-07 09:42:23 -08:00 |
|
Matt Borland
|
2c4e7966bc
|
Add limits definitions
|
2023-02-07 09:17:21 -08:00 |
|
Matt Borland
|
13dd7d1026
|
Workaround for GCC11
|
2023-02-06 08:54:48 -08:00 |
|
Matt Borland
|
7934db5eb1
|
Ignore GCC10+ memcpy overflow warning
|
2023-02-03 10:56:49 -08:00 |
|
Matt Borland
|
a27c11a3d4
|
Fix sign comparison
|
2023-02-02 12:09:17 -08:00 |
|
Matt Borland
|
aa13c62ce6
|
Fix 8 and 16 bit overflows
|
2023-02-02 11:52:02 -08:00 |
|
Matt Borland
|
373954a4a8
|
Revert decompose32 mask change
|
2023-02-02 08:54:49 -08:00 |
|
Matt Borland
|
fb69333f62
|
Sign is accounted for by shifting first
|
2023-02-01 16:09:48 -08:00 |
|
Matt Borland
|
a8c8cb73f1
|
Simplify is_constant_evaluated_macro
|
2023-02-01 12:18:00 -08:00 |
|
Matt Borland
|
7970a99197
|
Remove no-op macro
|
2023-02-01 12:15:47 -08:00 |
|
Matt Borland
|
f5f0af78e6
|
Add more comparisons against STL
|
2023-01-31 11:21:42 -08:00 |
|
Matt Borland
|
12147b861f
|
Replace 57-bit mask with 32-bit mask
Co-authored-by: Junekey Jeon <jk_jeon@kaist.ac.kr>
|
2023-01-31 10:53:22 -08:00 |
|
Matt Borland
|
af3b943333
|
Fix location of returned pointer
|
2023-01-31 09:56:28 -08:00 |
|
Matt Borland
|
ff1ce048a3
|
Changes for constexpr context
|
2023-01-31 09:20:31 -08:00 |
|
Matt Borland
|
70472c73d5
|
Add test for generic impl
|
2023-01-31 08:15:16 -08:00 |
|
Matt Borland
|
60d819d5b9
|
Add casting to our memcpy
|
2023-01-27 11:18:48 -08:00 |
|
Matt Borland
|
f1fac0a7ae
|
Replace std::memcpy with our memcpy
|
2023-01-27 10:52:53 -08:00 |
|
Matt Borland
|
fb87dfff38
|
Fix MSVC C4146
|
2023-01-27 10:10:25 -08:00 |
|
Matt Borland
|
1b37d1cb3d
|
Add default initializer to buffer
|
2023-01-27 10:06:22 -08:00 |
|
Matt Borland
|
2e202cecdb
|
FIx missing header for CHAR_BIT
|
2023-01-27 09:52:48 -08:00 |
|
Matt Borland
|
cce04082b9
|
Add consteval memcpy
|
2023-01-27 09:51:26 -08:00 |
|
Matt Borland
|
9bc76d8034
|
Fix buffer offset and get rid of memcmp
|
2023-01-27 09:21:08 -08:00 |
|
Matt Borland
|
3784c1b81b
|
Put back memcpy in base10
|
2023-01-27 09:12:43 -08:00 |
|
Matt Borland
|
e00712a6a3
|
Fix handling of all other bases
|
2023-01-27 09:07:52 -08:00 |
|
Matt Borland
|
0ac231b27a
|
Fix base10 overflow handling
|
2023-01-27 08:52:59 -08:00 |
|
Matt Borland
|
c06ae72fb9
|
Use c-style array instead of std::array
[ci skip]
|
2023-01-26 12:03:47 -08:00 |
|
Matt Borland
|
b1e5a06caf
|
Fix type
[ci skip]
|
2023-01-26 11:46:50 -08:00 |
|
Matt Borland
|
d7d278bcd5
|
Impl for all other bases
[ci skip]
|
2023-01-26 11:46:32 -08:00 |
|
Matt Borland
|
157729dad4
|
Add character lookup table
|
2023-01-26 09:32:19 -08:00 |
|
Matt Borland
|
c7b2177145
|
Add framework for is_constant_evaluated
|
2023-01-26 09:21:33 -08:00 |
|
Matt Borland
|
4f46f6a31d
|
Avoid overflow by only using 9 digits per uint32_t
|
2023-01-25 13:00:54 -08:00 |
|