mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Make dlmalloc a little faster
This change also documents the libc arena allocator.
This commit is contained in:
parent
fa1e8a3e65
commit
a41669dec6
5 changed files with 59 additions and 19 deletions
17
examples/hello4.c
Normal file
17
examples/hello4.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
#if 0
|
||||
/*─────────────────────────────────────────────────────────────────╗
|
||||
│ To the extent possible under law, Justine Tunney has waived │
|
||||
│ all copyright and related or neighboring rights to this file, │
|
||||
│ as it is written in the following disclaimers: │
|
||||
│ • http://unlicense.org/ │
|
||||
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
||||
╚─────────────────────────────────────────────────────────────────*/
|
||||
#endif
|
||||
#include "libc/math.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
volatile double x = 123;
|
||||
printf("cos(%g) is %g\n", x, cos(x));
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue