Commit Graph
787 Commits
Author SHA1 Message Date
Victor Zverovich 60dc273513 Simplify on_text 2020-11-11 15:13:44 -08:00
Victor Zverovich b5dac0f0f8 Reduce <algorithm> usage (#1998) 2020-11-11 09:12:15 -08:00
Victor Zverovich beb248b6ac Optimize handling of large format strings 2020-11-11 06:11:05 -08:00
Victor Zverovich a30b279bad Apply clang-format and tweak comments 2020-11-04 17:17:23 -08:00
Alexey Ochapov 6a2495c840 -Wattributes visibility warning with some GCC versions (#1975) 2020-11-04 17:11:31 -08:00
darklukeeandŁukasz Mitka 771292c328 Remove sizeof from unused variable silencer (#1974)
Using sizeof causes some compilers to complain:
'operand of sizeof is not a type, variable, or dereferenced pointer'

static_cast itself should be enough to silence unused variable warning

Co-authored-by: Łukasz Mitka <lukasz.mitka@aptiv.com>
2020-11-03 06:48:19 -08:00
Victor Zverovich 112755cf91 Remove FMT_SAFEBUFFERS (#1966) 2020-10-29 17:42:45 -07:00
Victor Zverovich 4081b2fe94 Fix ABI compatibility (#1961) 2020-10-29 11:29:47 -07:00
Vladislav Shchapov 97c8873214 Allocator::max_size support in basic_memory_buffer (#1960) 2020-10-29 06:17:00 -07:00
Victor Zverovich 7977c2b4d0 Cleanup 2020-10-27 07:19:28 -07:00
Victor Zverovich 47e167679a Simplify arg formatter 2020-10-21 19:04:02 -07:00
Victor Zverovich f0a42346a4 Move parsing optimization one level up 2020-10-21 18:18:53 -07:00
Victor Zverovich 86287b8d56 Optimize common case in parse_format_specs 2020-10-21 17:16:58 -07:00
Victor Zverovich 0ecb3d1829 Optimize alignment parsing 2020-10-21 12:45:11 -07:00
Victor Zverovich 9755307842 Optimize format_uint 2020-10-21 08:19:21 -07:00
Victor Zverovich 7446818f98 Simplify vformat_to 2020-10-21 07:15:11 -07:00
Victor Zverovich e57ec7d563 Merge vformat_to overloads 2020-10-20 17:39:50 -07:00
Victor Zverovich 27fdb4ead2 Unshadow floaty 2020-10-20 15:05:00 -07:00
Victor Zverovich f468b203ad Avoid conversion from long long to size_t (#1935) 2020-10-18 09:25:33 -07:00
Victor Zverovich 20d4f2e836 Fix handling of weird character types when parsing sign (#1932) 2020-10-17 09:40:30 -07:00
Bart SiwekandBart Siwek 271eff149f Make classes derived from buffer<T> final to silence the virtual destructor warning. (#1937)
Co-authored-by: Bart Siwek <bsiwek@cisco.com>
2020-10-15 17:41:56 -07:00
Victor Zverovich 41d97e1ef4 Fix a UB on ridiculously large precision 2020-10-11 08:07:52 -07:00
MarcDirven 01c37e0a4b Added check for -mbig-obj and ref qualifier check (#1929)
* Added check whether mingw has -mbig-obj flag
* Removed ref qualifiers
2020-10-11 07:49:54 -07:00
Victor Zverovich a5e7e7db95 Fix handling of thousand separator (#1927) 2020-10-10 07:23:36 -07:00
Victor Zverovich bf19051a9f Optimize floating point formatting 2020-10-09 15:29:56 -07:00
Victor Zverovich 3c13a88b14 Optimize floating point formatting 2020-10-09 11:01:01 -07:00
Victor Zverovich f6d75c534c Refactor write_float 2020-10-09 09:11:39 -07:00
Victor Zverovich e9c0b2d69e Merge write_float overloads 2020-10-08 20:00:38 -07:00
Victor Zverovich 7eddbfed53 Cleanup exponent handling in write_float 2020-10-07 15:58:43 -07:00
Victor Zverovich b347b3023f Update dynamic_formatter comment (#1923) 2020-10-07 12:15:07 -07:00
Victor Zverovich 3541880efd Fix integer overflow when using max int precision 2020-10-07 11:27:02 -07:00
Victor Zverovich b91d39f20b Get rid of float_writer 2020-10-05 06:34:04 -07:00
Victor Zverovich b4b64b9cce Refactor float formatting 2020-10-04 14:44:25 -07:00
Victor Zverovich 6417952574 Improve dragonbox integration 2020-09-27 20:49:37 -07:00
Victor Zverovich 63e0c35412 Make dragonbox::to_decimal available in format.h 2020-09-27 07:27:44 -07:00
moiwi 34179b3354 Update format.h (#1898) 2020-09-24 08:16:16 -07:00
Victor Zverovich 51f8d0cc21 Reuse log10_2_significand constant 2020-09-23 13:19:21 -07:00
Victor Zverovich 2d4fde3a2e Don't emit trailing zero for consistency with std::format 2020-09-23 09:19:12 -07:00
Victor Zverovich c1654ce487 Simplify uint32_or_64_or_128_t definition 2020-09-22 15:08:37 -07:00
Victor Zverovich 33712dc07a Combine pragmas 2020-09-22 14:47:35 -07:00
Victor Zverovich bb0db5e51e clang-format 2020-09-22 08:19:37 -07:00
Victor Zverovich 16410056bf Optimize copy_str for counting_iterator 2020-09-22 07:56:09 -07:00
mwinterb 2591ab91c3 MSVC optimizations for count_digits. (#1890)
Changed the clz implementations to use xor instead of subtraction so that when
count_digits "undoes" the BSR -> CLZ translation, the optimizer is more
willing to recognize the equivalence.
Changed the data array in bsr2log10 to static since otherwise MSVC generates
code to build the array every time the function is called.
2020-09-21 11:38:06 -07:00
Victor Zverovich ce3f76994a Merge intrinsic blocks 2020-09-19 07:54:45 -07:00
Junekey Jeon 1f0600a23b Fix bug regarding FMT_SAFEBUFFERS 2020-09-19 07:23:41 -07:00
Junekey Jeon 2ecdbb986d Fix a bug in ctzll 2020-09-19 07:23:41 -07:00
Junekey Jeon 0c8ffe9b0f Implement Dragonbox (first version) 2020-09-19 07:23:41 -07:00
jk-jeon 42699bf408 Fix msvc version of clz & clzll (#1880)
Change msvc version of clz & clzll to match __builtin_clz & _builtin_clzll
2020-09-18 11:07:01 -07:00
Axel Kohlmeyer bc51a8df04 Disable fallthrough attributes for the Intel compilers on Linux and MacOS (#1879)
* Disable fallthrough attributes for the Intel compilers

On MacOS and Linux the Intel compilers may be identified as the
host compilers (Clang or GNU) but do not support the corresponding
compiler specific fallthrough attributes.

* Rearrange ifdef logic for excluding pre-C++17 fallthrough attributes

This puts Intel and PGI compilers into a separate group
and thus makes the intent and logic more obvious.
2020-09-18 09:57:00 -07:00
Jan Schwers 45da432d60 fix compiler warnings in public header files 2020-09-17 15:53:53 -07:00