mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Perform some code cleanup
This commit is contained in:
parent
cc1732bc42
commit
210187cf77
205 changed files with 1748 additions and 2595 deletions
|
@ -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(coshf, test) {
|
|||
EXPECT_STREQ("INFINITY", gc(xdtoaf(_coshf(INFINITY))));
|
||||
EXPECT_STREQ("INFINITY", gc(xdtoaf(_coshf(-INFINITY))));
|
||||
}
|
||||
|
||||
BENCH(cosh, bench) {
|
||||
EZBENCH2("cosh", donothing, _cosh(.7)); // ~6ns
|
||||
EZBENCH2("coshf", donothing, _coshf(.7)); // ~5ns
|
||||
EZBENCH2("coshl", donothing, _coshl(.7)); // ~25ns
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue