mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Make AARCH64 harder, better, faster, stronger
- Perform some housekeeping on scalar math function code - Import ARM's Optimized Routines for SIMD string processing - Upgrade to latest Chromium zlib and enable more SIMD optimizations
This commit is contained in:
parent
550b52abf6
commit
cc1732bc42
143 changed files with 15661 additions and 1329 deletions
|
@ -36,13 +36,14 @@ Copyright 2005-2014 Rich Felker, et. al.\"");
|
|||
asm(".include \"libc/disclaimer.inc\"");
|
||||
// clang-format off
|
||||
|
||||
long double nextafterl(long double x, long double y) {
|
||||
long double nextafterl(long double x, long double y)
|
||||
{
|
||||
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
||||
return nextafter(x, y);
|
||||
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
|
||||
union ldshape ux, uy;
|
||||
|
||||
if (isnan(x) || isnan(y))
|
||||
if (isunordered(x, y))
|
||||
return x + y;
|
||||
if (x == y)
|
||||
return y;
|
||||
|
@ -75,7 +76,7 @@ long double nextafterl(long double x, long double y) {
|
|||
#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
|
||||
union ldshape ux, uy;
|
||||
|
||||
if (isnan(x) || isnan(y))
|
||||
if (isunordered(x, y))
|
||||
return x + y;
|
||||
if (x == y)
|
||||
return y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue