Move FMT_REDUCE_INT_INSTANTIATIONS to format.h
This commit is contained in:
parent
e136a9dd88
commit
c6bc78caab
@ -311,14 +311,6 @@ struct int128_t {};
|
||||
struct uint128_t {};
|
||||
#endif
|
||||
|
||||
// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
|
||||
// int_writer template instances to just one by only using the largest integer
|
||||
// type. This results in a reduction in binary size but will cause a decrease in
|
||||
// integer formatting performance.
|
||||
#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
|
||||
# define FMT_REDUCE_INT_INSTANTIATIONS 0
|
||||
#endif
|
||||
|
||||
// Casts a nonnegative integer to unsigned.
|
||||
template <typename Int>
|
||||
FMT_CONSTEXPR typename std::make_unsigned<Int>::type to_unsigned(Int value) {
|
||||
|
||||
@ -163,6 +163,14 @@ FMT_END_NAMESPACE
|
||||
# define FMT_USE_LONG_DOUBLE 1
|
||||
#endif
|
||||
|
||||
// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
|
||||
// int_writer template instances to just one by only using the largest integer
|
||||
// type. This results in a reduction in binary size but will cause a decrease in
|
||||
// integer formatting performance.
|
||||
#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
|
||||
# define FMT_REDUCE_INT_INSTANTIATIONS 0
|
||||
#endif
|
||||
|
||||
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
||||
// https://github.com/fmtlib/fmt/issues/519
|
||||
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_clz)) && !FMT_MSC_VER
|
||||
|
||||
Loading…
Reference in New Issue
Block a user