mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-01 05:18:45 +00:00
Import compiler warning fix from Musl
This commit is contained in:
parent
ea3cc4ea0b
commit
223eb358c4
1 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ long double sqrtl(long double x)
|
||||||
top = (top + 0x3fff) >> 1;
|
top = (top + 0x3fff) >> 1;
|
||||||
|
|
||||||
/* r ~ 1/sqrt(m) */
|
/* r ~ 1/sqrt(m) */
|
||||||
static const uint64_t three = 0xc0000000;
|
const uint64_t three = 0xc0000000;
|
||||||
uint64_t r, s, d, u, i;
|
uint64_t r, s, d, u, i;
|
||||||
i = (ix.hi >> 42) % 128;
|
i = (ix.hi >> 42) % 128;
|
||||||
r = (uint32_t)__rsqrt_tab[i] << 16;
|
r = (uint32_t)__rsqrt_tab[i] << 16;
|
||||||
|
@ -255,7 +255,7 @@ long double sqrtl(long double x)
|
||||||
r = mul64(u, r) << 1;
|
r = mul64(u, r) << 1;
|
||||||
/* |r sqrt(m) - 1| < 0x1.c001p-59, switch to 128bit */
|
/* |r sqrt(m) - 1| < 0x1.c001p-59, switch to 128bit */
|
||||||
|
|
||||||
static const u128 threel = {.hi=three<<32, .lo=0};
|
const u128 threel = {.hi=three<<32, .lo=0};
|
||||||
u128 rl, sl, dl, ul;
|
u128 rl, sl, dl, ul;
|
||||||
rl.hi = r;
|
rl.hi = r;
|
||||||
rl.lo = 0;
|
rl.lo = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue