mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Get libc/tinymath/ compiling on aarch64
This commit is contained in:
parent
2b73e72d59
commit
135080fd3e
243 changed files with 7773 additions and 4027 deletions
|
@ -35,24 +35,17 @@ Copyright 2005-2014 Rich Felker, et. al.\"");
|
|||
asm(".include \"libc/disclaimer.inc\"");
|
||||
/* clang-format off */
|
||||
|
||||
|
||||
|
||||
long double complex casinl(long double complex z) {
|
||||
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
||||
long double complex casinl(long double complex z)
|
||||
{
|
||||
return casin(z);
|
||||
}
|
||||
#else
|
||||
// FIXME
|
||||
long double complex casinl(long double complex z)
|
||||
{
|
||||
long double complex w;
|
||||
long double x, y;
|
||||
|
||||
x = creall(z);
|
||||
y = cimagl(z);
|
||||
w = CMPLXL(1.0 - (x - y)*(x + y), -2.0*x*y);
|
||||
long double complex r = clogl(CMPLXL(-y, x) + csqrtl(w));
|
||||
return CMPLXL(cimagl(r), -creall(r));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue