Commit Graph
100 Commits
Author SHA1 Message Date
Victor Zverovich 010efc310f Add float fuzzer and cleanup 2020-10-14 20:13:09 -07:00
Victor Zverovich 811c8b58c5 Add float fuzzer and cleanup 2020-10-14 07:39:51 -07:00
Victor Zverovich 82c4e2236a Cleanup fuzzing 2020-10-13 09:08:04 -07:00
Victor Zverovich 63e40c9614 Fix naming of fuzzers 2020-10-12 16:48:25 -07:00
Victor Zverovich 2f448ed565 Fix fuzzer timeouts 2020-10-12 16:46:21 -07:00
Victor Zverovich af28305961 Cleanup 2020-10-11 10:13:42 -07:00
Victor Zverovich 48ea8193df Explain why assert-test is a separate test 2020-10-11 10:13:42 -07:00
Victor Zverovich 1d112bdd1e Remove old test 2020-10-11 10:13:42 -07:00
Victor Zverovich 7e56b6b6cb Fix coding style and remove duplicate fuzzer 2020-10-11 08:07:52 -07:00
Victor Zverovich 41d97e1ef4 Fix a UB on ridiculously large precision 2020-10-11 08:07:52 -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 7b50dc0b24 Don't exclude all detail symbols from docs 2020-10-07 09:07:39 -07:00
Victor Zverovich 2805243103 Fix the doc config 2020-10-07 08:11:59 -07:00
Victor Zverovich 34f22e88a1 Cleanup CMake config 2020-10-07 08:11:42 -07:00
Victor Zverovich a18b3fbbdc Fix fixed precision handling when rounding (#1917) 2020-10-07 07:42:23 -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 712abe40f2 Workaround a bug in gcc 7.5 (#1912)
Thanks Martin Janzen.
2020-10-04 09:20:37 -07:00
Victor Zverovich af8a180aed Make GetCachedPower test more precise 2020-10-04 08:00:47 -07:00
Victor Zverovich 05a28312cf Update docs 2020-09-30 17:38:28 -07:00
Victor Zverovich 4d0aa4d8fe Update link 2020-09-30 17:21:07 -07:00
Victor Zverovich 575f401896 Simplify FP formatting and follow coding conventions 2020-09-30 06:36:17 -07:00
Victor Zverovich 90ef46df0b Fix dragonbox integration 2020-09-28 18:10:46 -07:00
Victor Zverovich 3ae88147e2 Fix declaration 2020-09-28 06:50:09 -07:00
Victor Zverovich 6417952574 Improve dragonbox integration 2020-09-27 20:49:37 -07:00
Victor Zverovich 79694d424c Fix WriteConsole signature 2020-09-27 14:26:28 -07:00
Victor Zverovich 51f2e2ca27 Move nan test to where it belongs 2020-09-27 12:50:18 -07:00
Victor Zverovich 68555fdbd2 Make format-test not depend on color.h 2020-09-27 09:17:57 -07:00
Victor Zverovich 63e0c35412 Make dragonbox::to_decimal available in format.h 2020-09-27 07:27:44 -07:00
Victor Zverovich a905d8f704 Merge grisu-test into format-test 2020-09-26 08:23:16 -07:00
Victor Zverovich c156093ffd Fix carry in fallback_format 2020-09-25 10:12:44 -07:00
Victor Zverovich 0651e4598b Minor tweaks to get_cached_power 2020-09-23 16:04:40 -07:00
Victor Zverovich 6c025520aa Test that max_k is correctly defined 2020-09-23 15:44:37 -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 5fd89d50e4 Minor simplifications 2020-09-23 08:05:31 -07:00
Victor Zverovich 605ce5e429 Simplify divisible_by_power_of_2 2020-09-22 20:44:29 -07:00
Victor Zverovich 085171e7e6 Remove grisu_count_digits 2020-09-22 19:36:52 -07:00
Victor Zverovich aa729bf25b Remove dead code 2020-09-22 16:58:02 -07:00
Victor Zverovich aa2ddf9b86 Simplify Dragonbox integration 2020-09-22 16:20:40 -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 e5942ac9dd Tweak comments 2020-09-22 14:36:10 -07:00
Victor Zverovich aae7a1338c Remove unused pragmas 2020-09-22 14:00:41 -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
Victor Zverovich 2f7e08856b Disable range formatter if value type is not formattable (#1885) 2020-09-20 08:37:49 -07:00
Victor Zverovich c46a8de4e1 Simplify test 2020-09-20 07:24:24 -07:00
Victor Zverovich 0016da7ab3 Don't generate zeros and fix UB on huge precision 2020-09-19 16:01:43 -07:00
Victor Zverovich ce3f76994a Merge intrinsic blocks 2020-09-19 07:54:45 -07:00
Victor Zverovich 7e6827521a Remove trailing zeros when using fallback formatter (#1873) 2020-09-17 08:16:21 -07:00
Victor Zverovich 1d696dc280 Handle exotic character types in compilation 2020-09-17 07:12:34 -07:00
Victor Zverovich 5b5a597198 Fix handling of wide alignment 2020-09-15 06:53:06 -07:00
Victor Zverovich 3813966497 Simplify fallback format 2020-09-13 11:27:34 -07:00
Victor Zverovich dce8e49b4f Handle float in fallback formatter 2020-09-13 09:28:40 -07:00
Victor Zverovich 78b5944313 Spelling 2020-09-12 13:14:49 -07:00
Victor Zverovich f233b56cdd Don't generate insignificant digits 2020-09-12 09:19:50 -07:00
Victor Zverovich 595902f8a0 Update test 2020-09-11 07:57:40 -07:00
Victor Zverovich 4f2ee8921d Use built-in FP formatter for any precision 2020-09-11 07:20:16 -07:00
Victor Zverovich 58a044be5d Use built-in FP formatter for any precision 2020-09-11 07:19:45 -07:00
Victor Zverovich efe3694f15 Macro tweak and clang-format 2020-09-07 14:43:00 -07:00
Victor Zverovich 9f312fe87e Implement fallback FP formatting with given precision (#1526) 2020-09-07 09:34:30 -07:00
Victor Zverovich fb289cf56b Fix coding conventions 2020-09-06 09:26:32 -07:00
Victor Zverovich 86f0a7046e Fix formatting 2020-09-06 08:58:19 -07:00
Victor Zverovich 6cccdc24bc Fix move constructor (#1844) 2020-09-01 08:48:56 -07:00
Victor Zverovich 77b627be20 Fix bogus MSVC warnings (#1825) 2020-08-26 12:33:54 -07:00
Victor Zverovich 5dff01d31b Add complex tests 2020-08-26 11:48:50 -07:00
Victor Zverovich d16d585e64 Update signatures 2020-08-26 09:35:19 -07:00
Victor Zverovich 92bff2fe2c Revert "Add missing includes"
This reverts commit 06895a7687.
2020-08-21 16:24:53 -07:00
Victor Zverovich a0dcfbc57b Add ptr to docs 2020-08-21 06:54:05 -07:00
Victor Zverovich 06895a7687 Add missing includes 2020-08-19 20:33:04 -07:00
Victor Zverovich 92a448a071 Apply clang-format 2020-08-19 10:42:22 -07:00
Victor Zverovich 54daa0864a Add dynamic width support to FMT_COMPILE (#1809) 2020-08-10 09:40:11 -07:00
Victor Zverovich 6fb7c6fb25 Workaround a bug in gcc10 (#1810) 2020-08-10 07:20:34 -07:00
Victor Zverovich 4fd95e4b4d Don't remove trailing zeros with # 2020-08-08 08:14:39 -07:00
Victor Zverovich e06ae32294 Avoid warnings on functions with external linkage that don't have declarations 2020-08-08 07:58:13 -07:00
Victor Zverovich 7fc3d1f54c Add override to grow 2020-08-08 07:23:11 -07:00
Victor Zverovich 065889a593 Use correct capacity in iterator_buffer (#1807) 2020-08-08 07:01:21 -07:00
Victor Zverovich 0e7cef069b Merge commit 'c13f79e0' 2020-08-08 06:28:45 -07:00
Victor Zverovich c13f79e09e Merge release branch 2020-08-07 07:01:21 -07:00
Victor Zverovich cd4af11efc Update version 2020-08-06 08:51:01 -07:00
Victor Zverovich 1ebc2f7cc6 Bump version 2020-08-06 07:41:04 -07:00
Victor Zverovich f4c997062a Fix changelog 2020-08-06 07:40:46 -07:00
Victor Zverovich 72920ba30a Update changelog 2020-08-06 07:39:37 -07:00
Victor Zverovich 0907c08ae5 Fix handling of default alignmment with locale (#1801) 2020-08-06 07:39:09 -07:00
Victor Zverovich eaaaec9992 Workaround a bug in msvc 2020-08-06 07:38:51 -07:00
Victor Zverovich ccf8561cb3 Workaround broken numeric_limites, part 2 (#1787) 2020-08-06 07:38:32 -07:00
Victor Zverovich 0cc73ebf79 Report error on missing named argument (#1796) 2020-08-06 07:38:18 -07:00
Victor Zverovich 33efc3c94f Fix handling of iterators in locale-specific formatting (#1782) 2020-08-06 07:38:08 -07:00
Victor Zverovich 4a4fc225ed Update changelog 2020-08-06 07:34:56 -07:00
Victor Zverovich 61602a75db Remove -Wno-shadow 2020-08-05 10:55:09 -07:00
Victor Zverovich 2a69f56769 Tweak buffer size 2020-08-05 08:22:12 -07:00
Victor Zverovich ea76933802 Simplify ostream 2020-08-04 20:11:43 -07:00