Skip to content

Commit 37ccb45

Browse files
authored
[libc] Fix unused statements in asin when accurate path is not needed. (#150726)
Fix offload build bots: https://lab.llvm.org/buildbot/#/builders/10/builds/10213
1 parent 1a4f0d6 commit 37ccb45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libc/src/__support/math/asin.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ namespace math {
2727

2828
static constexpr double asin(double x) {
2929
using namespace asin_internal;
30-
using Float128 = fputil::DyadicFloat<128>;
31-
using DoubleDouble = fputil::DoubleDouble;
3230
using FPBits = fputil::FPBits<double>;
3331

3432
FPBits xbits(x);
@@ -76,6 +74,9 @@ static constexpr double asin(double x) {
7674
#ifdef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
7775
return x * asin_eval(x * x);
7876
#else
77+
using Float128 = fputil::DyadicFloat<128>;
78+
using DoubleDouble = fputil::DoubleDouble;
79+
7980
unsigned idx = 0;
8081
DoubleDouble x_sq = fputil::exact_mult(x, x);
8182
double err = xbits.abs().get_val() * 0x1.0p-51;

0 commit comments

Comments
 (0)