File tree 3 files changed +5
-10
lines changed
utils/bazel/llvm-project-overlay/libc 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ add_header_library(
190
190
libc.src.__support.CPP.bit
191
191
libc.src.__support.CPP.limits
192
192
libc.src.__support.CPP.optional
193
- libc.src.__support.FPUtil.dyadic_float
194
- libc.src.__support.FPUtil.fenv_impl
195
193
libc.src.__support.FPUtil.fp_bits
196
194
libc.src.__support.FPUtil.rounding_mode
197
195
libc.src.errno.errno
Original file line number Diff line number Diff line change 13
13
#include " src/__support/CPP/limits.h"
14
14
#include " src/__support/CPP/optional.h"
15
15
#include " src/__support/CPP/string_view.h"
16
- #include " src/__support/FPUtil/FEnvImpl.h"
17
16
#include " src/__support/FPUtil/FPBits.h"
18
- #include " src/__support/FPUtil/dyadic_float.h"
19
17
#include " src/__support/FPUtil/rounding_mode.h"
20
18
#include " src/__support/common.h"
21
19
#include " src/__support/ctype_utils.h"
27
25
#include " src/__support/uint128.h"
28
26
#include " src/errno/libc_errno.h" // For ERANGE
29
27
28
+ #include < stdint.h>
29
+
30
30
namespace LIBC_NAMESPACE_DECL {
31
31
namespace internal {
32
32
@@ -525,10 +525,9 @@ clinger_fast_path(ExpandedFloat<T> init_num,
525
525
FPBits result;
526
526
T float_mantissa;
527
527
if constexpr (cpp::is_same_v<StorageType, UInt<128 >>) {
528
- float_mantissa = static_cast <T>(fputil::DyadicFloat<128 >(
529
- Sign::POS, 0 ,
530
- fputil::DyadicFloat<128 >::MantissaType (
531
- {uint64_t (mantissa), uint64_t (mantissa >> 64 )})));
528
+ float_mantissa =
529
+ (static_cast <T>(uint64_t (mantissa)) * static_cast <T>(0x1 .0p64)) +
530
+ static_cast <T>(uint64_t (mantissa >> 64 ));
532
531
} else {
533
532
float_mantissa = static_cast <T>(mantissa);
534
533
}
Original file line number Diff line number Diff line change @@ -664,8 +664,6 @@ libc_support_library(
664
664
":__support_cpp_optional" ,
665
665
":__support_cpp_string_view" ,
666
666
":__support_ctype_utils" ,
667
- ":__support_fputil_dyadic_float" ,
668
- ":__support_fputil_fenv_impl" ,
669
667
":__support_fputil_fp_bits" ,
670
668
":__support_fputil_rounding_mode" ,
671
669
":__support_str_to_integer" ,
You can’t perform that action at this time.
0 commit comments