File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 18
18
namespace LIBC_NAMESPACE_DECL {
19
19
namespace fputil {
20
20
21
- #define DEFAULT_DOUBLE_SPLIT 27
22
-
23
21
template <typename T> struct DefaultSplit ;
24
22
template <> struct DefaultSplit <float > {
25
23
static constexpr size_t VALUE = 12 ;
26
24
};
27
25
template <> struct DefaultSplit <double > {
28
- static constexpr size_t VALUE = DEFAULT_DOUBLE_SPLIT ;
26
+ static constexpr size_t VALUE = 27 ;
29
27
};
30
28
31
29
using DoubleDouble = NumberPair<double >;
Original file line number Diff line number Diff line change 21
21
namespace LIBC_NAMESPACE_DECL {
22
22
23
23
#ifdef LIBC_TARGET_CPU_HAS_FMA
24
- static constexpr unsigned SPLIT = DEFAULT_DOUBLE_SPLIT ;
24
+ static constexpr unsigned SPLIT = fputil::DefaultSplit< double >::VALUE ;
25
25
#else
26
26
// When there is no-FMA instructions, in order to have exact product of 2 double
27
27
// precision with directional roundings, we need to lower the precision of the
You can’t perform that action at this time.
0 commit comments