From c6bc78caab46c4d3a2c254507e69c8e57e413023 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Sun, 19 Jul 2020 11:57:15 -0700 Subject: [PATCH] Move FMT_REDUCE_INT_INSTANTIATIONS to format.h --- include/fmt/core.h | 8 -------- include/fmt/format.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index ad2511e9..bf144a35 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -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 FMT_CONSTEXPR typename std::make_unsigned::type to_unsigned(Int value) { diff --git a/include/fmt/format.h b/include/fmt/format.h index ff233b7d..7f4eda62 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -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