mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12: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(acos, test) {
|
|||
EXPECT_TRUE(isnan(acos(__DBL_MAX__)));
|
||||
}
|
||||
|
||||
BENCH(acos, bench) {
|
||||
EZBENCH2("acos(+0)", donothing, acos(0));
|
||||
EZBENCH2("acos(-0)", donothing, acos(-0.));
|
||||
EZBENCH2("acos(NAN)", donothing, acos(NAN));
|
||||
EZBENCH2("acos(INFINITY)", donothing, acos(INFINITY));
|
||||
EZBENCH_C("acos", _real1(vigna()), acos(_real1(vigna())));
|
||||
BENCH(acosl, bench) {
|
||||
double _acos(double) asm("acos");
|
||||
float _acosf(float) asm("acosf");
|
||||
long double _acosl(long double) asm("acosl");
|
||||
EZBENCH2("-acos", donothing, _acos(.7)); /* ~17ns */
|
||||
EZBENCH2("-acosf", donothing, _acosf(.7)); /* ~11ns */
|
||||
EZBENCH2("-acosl", donothing, _acosl(.7)); /* ~40ns */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue