diff --git a/libc/src/__support/FPUtil/double_double.h b/libc/src/__support/FPUtil/double_double.h index 8c318cfbed363..b24ffd4aa456f 100644 --- a/libc/src/__support/FPUtil/double_double.h +++ b/libc/src/__support/FPUtil/double_double.h @@ -18,14 +18,12 @@ namespace LIBC_NAMESPACE_DECL { namespace fputil { -#define DEFAULT_DOUBLE_SPLIT 27 - template struct DefaultSplit; template <> struct DefaultSplit { static constexpr size_t VALUE = 12; }; template <> struct DefaultSplit { - static constexpr size_t VALUE = DEFAULT_DOUBLE_SPLIT; + static constexpr size_t VALUE = 27; }; using DoubleDouble = NumberPair; diff --git a/libc/src/math/generic/range_reduction_double_common.h b/libc/src/math/generic/range_reduction_double_common.h index 06aeb49495ad2..711a12219c847 100644 --- a/libc/src/math/generic/range_reduction_double_common.h +++ b/libc/src/math/generic/range_reduction_double_common.h @@ -21,7 +21,7 @@ namespace LIBC_NAMESPACE_DECL { #ifdef LIBC_TARGET_CPU_HAS_FMA -static constexpr unsigned SPLIT = DEFAULT_DOUBLE_SPLIT; +static constexpr unsigned SPLIT = fputil::DefaultSplit::VALUE; #else // When there is no-FMA instructions, in order to have exact product of 2 double // precision with directional roundings, we need to lower the precision of the