Commit Graph

105 Commits

Author SHA1 Message Date
Matt Borland
610c00ee22 Change guardrails for int128_type 2023-02-13 11:28:10 -08:00
Matt Borland
0b38425753 Change check for negative value
[ci skip]
2023-02-13 10:41:54 -08:00
Matt Borland
b3dcef3185 Merge remote-tracking branch 'origin/develop' into drop_gnu 2023-02-13 09:57:35 -08:00
Matt Borland
6caa200ccf Change type in integer trees
[ci skip]
2023-02-13 09:46:30 -08:00
Matt Borland
7d71fac5cb Avoid signed/unsigned conversion warnings 2023-02-13 09:39:07 -08:00
Matt Borland
90bff4885d Use macros instead of numeric_limits for 128 bit types
[ci skip]
2023-02-13 09:29:21 -08:00
Matt Borland
dc5410558a Suppress MSVC warnings 2023-02-13 09:13:24 -08:00
Matt Borland
f189277046 Add specific type overloads 2023-02-13 09:00:03 -08:00
Matt Borland
c902e09e09 Add macros for numeric limits of (u)int128 2023-02-13 08:59:33 -08:00
Matt Borland
60c9233f52 Add short overloads 2023-02-13 08:50:30 -08:00
Matt Borland
85444fa3f4 Fixes for to_chars 2023-02-10 12:05:40 -08:00
Peter Dimov
3f093e8851 Add definitions for limits<(u)int128_t>::max_chars(10) 2023-02-10 21:59:49 +02:00
Peter Dimov
b46dc2988b Add limits<T> specializations for (u)int128, because std::numeric_limits isn't always correct 2023-02-10 21:51:27 +02:00
Matt Borland
4cf3d9e329 Remove requirement for __STRICT_ANSI__ 2023-02-10 11:30:53 -08:00
Matt Borland
72c6ac6f52 Add specific overloads 2023-02-10 11:30:33 -08:00
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