Commit Graph
1068 Commits
Author SHA1 Message Date
Victor Zverovich ef54f9aa38 Suppress -Wfloat-equal 2022-04-01 12:18:22 -07:00
Victor Zverovich 96930161f9 Implement 128-bit operator+= for uint128_fallback 2022-03-27 08:07:54 -07:00
Victor Zverovich db5b8993ac Fix formatting of std::byte via format_as 2022-03-26 09:01:30 -07:00
Sean McBride 5379063b54 Fixed clang -Wreserved-identifier warings
Created FMT_UNCHECKED_TYPE that resolves to special identifier _Unchecked_type for Microsoft, but to a dummy string otherwise. Using
_Unchecked_type is invalid because underscore + uppercase is a reserved identifier.
2022-03-24 07:33:43 -07:00
Victor Zverovich 3c4273dd09 Simplify UDL 2022-03-22 17:43:37 -07:00
Victor Zverovich db745986f2 Workaround broken std::numeric_limits 2022-03-20 08:50:52 -07:00
Victor Zverovich 8271e43e5e Improve __float128 support and use constexpr 2022-03-20 07:20:41 -07:00
Victor Zverovich 3f9b7433a3 Improve __float128 support 2022-03-19 09:44:14 -07:00
Victor Zverovich 71778e8b90 Specialize float_info for __float128 2022-03-19 08:39:16 -07:00
Victor Zverovich 3c61799fbf Cleanup fuzzing mode 2022-03-18 12:01:52 -07:00
Victor Zverovich c076a54a4d Move snprintf_float to format.h 2022-03-18 08:31:31 -07:00
Victor Zverovich 0419d23882 Add FMT_USE_FLOAT128 2022-03-18 07:43:51 -07:00
Victor Zverovich bc654faf82 Add is_floating_point that works with __float128 2022-03-15 08:26:05 -07:00
Victor Zverovich 26bffce66d Simplify basic_memory_buffer 2022-03-15 07:15:52 -07:00
Victor Zverovich ed18ca3eae Implement isnan 2022-03-14 20:37:46 -07:00
Victor Zverovich a204b8dde7 Add initial __float128 support 2022-03-14 19:34:41 -07:00
Victor Zverovich f2543b0a98 Add initial support for 128-bit floats 2022-03-14 14:00:15 -07:00
Victor Zverovich 72f487562d Simplify float_info 2022-03-14 13:37:03 -07:00
Victor Zverovich f91f61cd13 Reuse num_significand_bits 2022-03-14 11:34:24 -07:00
Victor Zverovich 0b7c045a2f Simplify _cf 2022-03-08 15:31:51 -08:00
Greg Sjaardema 5bc39d363a Eliminate intel compiler warnings (#2802)
The intel compiler emits  `declaration hides parameter "loc" ..."  and similar warnings for "out" and "args" since the function arguments are the same as other visible symbols.  This is for intel-2021.3.0 20210609.
2022-03-07 15:34:33 -08:00
Victor Zverovich 86477f7ecc Fix size computation 2022-02-22 17:21:07 -08:00
Björn Schäpers 0742606f19 Fix Conversion Warning (#2782)
With -Wconversion and 32 Bit I get a warning here with unsigned long
long converted to unsigned long.
2022-02-22 08:16:36 -08:00
Victor Zverovich 1ba69fb5a1 Remove snprintf FP fallback 2022-02-21 08:01:55 -08:00
Victor Zverovich ea6f0bf0e5 Minor cleanup 2022-02-21 07:29:36 -08:00
Ivan Shynkarenka 1a18a2f3dd Fixing "C4127: conditional expression is constant" Visual Studio 2022 warning in pedantic mode (#2783) 2022-02-21 07:26:16 -08:00
Juraj 70dc3de053 Update format.h
To prevent the following compiler message:
[...]/include/fmt/format.h:392:20: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
  392 |     unsigned value[size];
      |                    ^~~~
2022-02-20 11:38:03 -08:00
Victor Zverovich cbc59ca893 Clear moved from memory buffer 2022-02-20 08:12:59 -08:00
Victor Zverovich aad44f2839 Add fmt::enums::format_as 2022-02-19 08:03:42 -08:00
Victor Zverovich 1319719a5e Add underlying_t 2022-02-19 07:57:43 -08:00
Victor Zverovich 7b96420961 Remove unused include 2022-02-18 18:56:51 -08:00
Victor Zverovich a0b43bfae2 Add support for 96-bit long double 2022-02-18 18:01:49 -08:00
Victor Zverovich 2c8cd2db34 Fix handling of zero precision 2022-02-18 12:38:30 -08:00
Victor Zverovich 05432e570e Use consistent indentation 2022-02-18 07:38:42 -08:00
Victor Zverovich 47da218cc3 Remove uintptr_fallback 2022-02-18 07:03:33 -08:00
Victor Zverovich 4ddab8901c Merge accumulator into int128_fallback 2022-02-18 06:17:28 -08:00
Victor Zverovich d38f72aff2 Refactor fallback ints 2022-02-17 20:24:42 -08:00
Victor Zverovich 15c2a3bacc int128_t -> int128_opt 2022-02-17 20:03:25 -08:00
Victor Zverovich a1ea3e015b Move built-in formatter specialization to core 2022-02-16 07:37:00 -08:00
Victor Zverovich 161059dd98 Add support for extended precision FP 2022-02-16 06:07:04 -08:00
Victor Zverovich 2b6f7fc7a3 Add partial support for extended precision FP 2022-02-15 07:22:41 -08:00
Vladislav Shchapov 0a24a0714e Clz builtin may be not constexpr (Issue #2761) (#2762) 2022-02-14 18:19:06 -08:00
Vladislav Shchapov 10e3b83a75 Replace `make_args_checked with make_format_args` (#2760)
* Replace make_args_checked to make_format_args

* Deprecate legacy make_args_checked
2022-02-13 20:13:35 -08:00
Victor Zverovich 35c0286cd8 Simplify byte handling 2022-02-02 16:13:24 -08:00
Barry Revzin a34a97cc1d Supporting ? as a string presentation type (#2674)
* Supporting ? as a string presentation type.

* Supporting ? as a char presentation type.

* Adding iterator_category to counting_iterator.
2022-01-30 08:55:28 -08:00
FedericoandFederico Busato b00a1eac75 Fixes NVIDIA HPC compiler and Intel ICC compatibility (#2732)
* Fixes NVIDIA HPC compiler and Intel ICC compatibility

* Fixes NVIDIA HPC compiler and Intel ICC compatibility

* Rename FMT_NVHPC_VERSION to FMT_NVCOMPILER_VERSION

Co-authored-by: Federico Busato <fbusato@nvidia.com>
2022-01-26 15:53:04 -08:00
Victor Zverovich 09fde7f4b8 Add fmt::underlying for enum classes 2022-01-22 08:06:22 -08:00
Victor Zverovich 0014024a2c Don't rely on transitive includes 2022-01-21 15:03:28 -08:00
Victor Zverovich c28500556a FMT_NOEXCEPT -> noexcept 2022-01-20 16:55:47 -08:00
Junekey Jeon 04eea0f0a8 Remove now-unused stuffs 2022-01-19 17:03:44 -08:00