mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +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
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/math.h"
|
||||
#include "libc/mem/gc.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/x/x.h"
|
||||
#include "libc/x/xasprintf.h"
|
||||
|
@ -51,3 +52,9 @@ TEST(asinhl, test) {
|
|||
EXPECT_STREQ("NAN", _gc(xdtoal(_asinhl(NAN))));
|
||||
EXPECT_STREQ("INFINITY", _gc(xdtoal(_asinhl(INFINITY))));
|
||||
}
|
||||
|
||||
BENCH(asinh, bench) {
|
||||
EZBENCH2("asinh", donothing, _asinh(.7)); // ~26ns
|
||||
EZBENCH2("asinhf", donothing, _asinhf(.7)); // ~17ns
|
||||
EZBENCH2("asinhl", donothing, _asinhl(.7)); // ~48ns
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/math.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/x/x.h"
|
||||
|
||||
|
@ -60,3 +61,9 @@ TEST(sinhf, test) {
|
|||
EXPECT_STREQ("INFINITY", gc(xdtoaf(_sinhf(INFINITY))));
|
||||
EXPECT_STREQ("-INFINITY", gc(xdtoaf(_sinhf(-INFINITY))));
|
||||
}
|
||||
|
||||
BENCH(sinh, bench) {
|
||||
EZBENCH2("sinh", donothing, _sinh(.7)); // ~24ns
|
||||
EZBENCH2("sinhf", donothing, _sinhf(.7)); // ~19ns
|
||||
EZBENCH2("sinhl", donothing, _sinhl(.7)); // ~15ns
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue