Skip to content

Commit 703bb7a

Browse files
lntuejoaosaffran
authored andcommitted
[libc][NFC] Remove DEFAULT_DOUBLE_SPLIT macro. (llvm#126822)
1 parent 6818bed commit 703bb7a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libc/src/__support/FPUtil/double_double.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@
1818
namespace LIBC_NAMESPACE_DECL {
1919
namespace fputil {
2020

21-
#define DEFAULT_DOUBLE_SPLIT 27
22-
2321
template <typename T> struct DefaultSplit;
2422
template <> struct DefaultSplit<float> {
2523
static constexpr size_t VALUE = 12;
2624
};
2725
template <> struct DefaultSplit<double> {
28-
static constexpr size_t VALUE = DEFAULT_DOUBLE_SPLIT;
26+
static constexpr size_t VALUE = 27;
2927
};
3028

3129
using DoubleDouble = NumberPair<double>;

libc/src/math/generic/range_reduction_double_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace LIBC_NAMESPACE_DECL {
2222

2323
#ifdef LIBC_TARGET_CPU_HAS_FMA
24-
static constexpr unsigned SPLIT = DEFAULT_DOUBLE_SPLIT;
24+
static constexpr unsigned SPLIT = fputil::DefaultSplit<double>::VALUE;
2525
#else
2626
// When there is no-FMA instructions, in order to have exact product of 2 double
2727
// precision with directional roundings, we need to lower the precision of the

0 commit comments

Comments
 (0)