mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Import more Musl math
This commit is contained in:
parent
6d52664aa7
commit
3027d67037
48 changed files with 1749 additions and 180 deletions
|
@ -44,10 +44,11 @@ TEST(asin, test) {
|
|||
EXPECT_TRUE(isnan(asin(__DBL_MAX__)));
|
||||
}
|
||||
|
||||
BENCH(asin, bench) {
|
||||
EZBENCH2("asin(+0)", donothing, asin(0));
|
||||
EZBENCH2("asin(-0)", donothing, asin(-0.));
|
||||
EZBENCH2("asin(NAN)", donothing, asin(NAN));
|
||||
EZBENCH2("asin(INFINITY)", donothing, asin(INFINITY));
|
||||
EZBENCH_C("asin", _real1(lemur64()), asin(_real1(lemur64())));
|
||||
BENCH(asinl, bench) {
|
||||
double _asin(double) asm("asin");
|
||||
float _asinf(float) asm("asinf");
|
||||
long double _asinl(long double) asm("asinl");
|
||||
EZBENCH2("-asin", donothing, _asin(.7)); /* ~16ns */
|
||||
EZBENCH2("-asinf", donothing, _asinf(.7)); /* ~12ns */
|
||||
EZBENCH2("-asinl", donothing, _asinl(.7)); /* ~39ns */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue