cosmopolitan/libc/tinymath
Justine Tunney 9e3e985ae5 Make terminal ui binaries work well everywhere
Here's some screenshots of an emulator tui program that was compiled on
Linux, then scp'd it to Windows, Mac, and FreeBSD.

https://justine.storage.googleapis.com/blinkenlights-cmdexe.png
https://justine.storage.googleapis.com/blinkenlights-imac.png
https://justine.storage.googleapis.com/blinkenlights-freebsd.png
https://justine.storage.googleapis.com/blinkenlights-lisp.png

How is this even possible that we have a nontrivial ui binary that just
works on Mac, Windows, Linux, and BSD? Surely a first ever achievement.

Fixed many bugs. Bootstrapped John McCarthy's metacircular evaluator on
bare metal in half the size of Altair BASIC (about 2.5kb) and ran it in
emulator for fun and profit.
2020-10-19 06:38:31 -07:00
..
README.txt Initial import 2020-06-15 07:18:57 -07:00
acos.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
acosf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
acosl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
asin.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
asinf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
asinl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
atan.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
atan2.S Make more improvements 2020-09-28 01:20:34 -07:00
atan2f.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
atan2l.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
atanf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
atanl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
c2rangr.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
cabs.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cabsf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cabsl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
carg.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
cargf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cargl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cbrt.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
cbrtc.c Add NES emulator 2020-07-02 13:46:08 -07:00
cbrtf.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
cbrtl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
ceil.S Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
ceilf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
ceill.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cimag.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cimagf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cimagl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
conj.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
conjf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
conjl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
copysign.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
copysignf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
copysignl.S Make improvements 2020-09-14 00:02:34 -07:00
cos.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cosf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cosl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cprojf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
cprojl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
creal.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
crealf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
creall.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
d2ld2.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
emod.h Initial import 2020-06-15 07:18:57 -07:00
emodl.h Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
exp.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
exp2.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
exp2f.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
exp2l.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
exp10.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
exp10f.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
exp10l.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
expf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
expl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
expm1.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
expm1f.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
expm1l.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
f2ld2.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
fabs.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fabsf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fabsl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fld.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
floor.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
floorf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
floorl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fmax.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fmaxf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fmaxl.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
fmin.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fminf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fminl.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
fmod.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fmodf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
fmodl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
frexp.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
hypot.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
hypotf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
hypotl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ilogb.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ilogbf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ilogbl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ldexp.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ldexpf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
ldexpl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
log.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
log1p.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
log1pf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
log1pl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
log2.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
log2f.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
log2l.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
log10.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
log10f.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
log10l.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
logb.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
logbf.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
logbl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
logf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
logl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lrint.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lrintf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lrintl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lround.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lroundf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
lroundl.S Make improvements 2020-09-14 00:02:34 -07:00
nearbyint.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
nearbyintf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
nearbyintl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
pow.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
powf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
powi.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
powif.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
powil.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
powl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
remainder.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
remainderf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
remainderl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
rint.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
rintf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
rintl.S Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
round.S Make improvements 2020-09-14 00:02:34 -07:00
roundf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
roundl.S Make improvements 2020-09-14 00:02:34 -07:00
scalb.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
scalbf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
scalbl.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
signbit.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
signbitf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
signbitl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
significand.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
significandf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
significandl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
sin.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
sincos.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
sincosf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
sincosl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
sinf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
sinl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
sqrt.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
sqrtf.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
sqrtl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
tan.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
tanf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
tanl.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
tinymath.h Initial import 2020-06-15 07:18:57 -07:00
tinymath.mk Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
trunc.S Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
truncf.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
truncl.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00

README.txt


                      Cosmopolitan TinyMath

    “Seymour Cray didn't care that 81.0/3.0 did not give exactly
     27.0 on the CDC 6000 class machines; and he was universally
     respected for making the fastest machines around.
                                          ──Linus Torvalds


Your Cosmopolitan TinyMath library provides hardware-accelerated scalar
transcendental mathematical functions that are superior to the portable
standards-compliant math library, in terms of both performance and code
size, by trading away focus on temporal concerns, like IEEE conformance
or rounding errors at the femto-scale, or reproducible results across a
broad array of niche machine languages.