cosmopolitan/libc/tinymath
Justine Tunney 8a91518633 Fix issues revealed by ECMAScript test262
Cosmopolitan's QuickJS is now equally conformant and performant, with
the exception of Atomics, which have been disabled since Cosmopolitan
currently doesn't support pthreads.

QuickJS memory usage -- BigNum 2021-03-27 version, 64-bit, malloc limit: -1

NAME                    COUNT     SIZE
memory allocated          937   131764  (140.6 per block)
memory used               938   116103  (8 overhead, 16.7 average slack)
atoms                     513    21408  (41.7 per atom)
objects                   170    12279  (72.2 per object)
  properties              864    15531  (5.1 per object)
  shapes                   58    12995  (224.1 per shape)
bytecode functions         13     1512
  bytecode                 13      867  (66.7 per function)
C functions                99
arrays                      1
  fast arrays               1
  elements                  1       16  (1.0 per fast array)

Result: 35/74740 errors, 1279 excluded, 485 skipped, 19 new, 2 fixed

real    2m40.828s
user    2m29.764s
sys     0m10.939s
2021-04-10 17:15:35 -07:00
..
acos.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
acosf.S Add more math fixes 2021-03-06 11:44:40 -08:00
acosh.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
acoshf.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
acoshl.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
acosl.S Add more math fixes 2021-03-06 11:44:40 -08:00
asin.S Add more math fixes 2021-03-06 11:44:40 -08:00
asinf.S Add more math fixes 2021-03-06 11:44:40 -08:00
asinh.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
asinhf.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
asinhl.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
asinl.S Add more math fixes 2021-03-06 11:44:40 -08:00
atan.S Add more math fixes 2021-03-06 11:44:40 -08:00
atan2.c Add tests for the greatest of all libm functions 2021-03-06 12:59:35 -08:00
atan2f.c Add tests for the greatest of all libm functions 2021-03-06 12:59:35 -08:00
atan2l.S Add tests for the greatest of all libm functions 2021-03-06 12:59:35 -08:00
atanf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
atanh.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
atanhf.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
atanhl.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
atanl.S Add more math fixes 2021-03-06 11:44:40 -08:00
c2rangr.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cabs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cabsf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cabsl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
carg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cargf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cargl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cbrt.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cbrtc.c Add NES emulator 2020-07-02 13:46:08 -07:00
cbrtf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cbrtl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ceil.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
ceilf.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
ceill.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
cimag.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cimagf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cimagl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
conj.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
conjf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
conjl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
copysign.S Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
copysignf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
copysignl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cos.S Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
cosf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cosh.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
coshf.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
coshl.c Add hyperbolic math functions 2021-02-28 01:27:50 -08:00
cosl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cprojf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cprojl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
creal.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
crealf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
creall.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
d2ld2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
emod.h Make improvements 2020-12-01 03:43:40 -08:00
emodl.h Make improvements 2020-12-01 03:43:40 -08:00
erf.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
erff.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
exp.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
exp2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
exp2f.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
exp2l.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
exp10.S Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
exp10f.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
exp10l.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
expf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
expl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
expm1.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
expm1f.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
expm1l.S Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
f2ld2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fabs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fabsf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fabsl.S Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
fdim.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
fdimf.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
fdiml.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
floor.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
floorf.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
floorl.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
fma.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
fmax.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fmaxf.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fmaxl.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fmin.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fminf.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fminl.c Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00
fmod.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fmodf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fmodl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
frexp.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
frexpf.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
frexpl.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
gamma.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
hypot.c Perform some code cleanup 2021-02-27 10:33:32 -08:00
hypotf.c Perform some code cleanup 2021-02-27 10:33:32 -08:00
hypotl.c Perform some code cleanup 2021-02-27 10:33:32 -08:00
ilogb.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ilogbf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ilogbl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kcos.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
ksin.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
ldexp.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ldexpf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ldexpl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log1p.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log1pf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log1pl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log2f.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log2l.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log10.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log10f.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log10l.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
logb.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
logbf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
logbl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
logf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
logl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lrint.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lrintf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lrintl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lround.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lroundf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lroundl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
modf.c Add modf(), modff(), and modfl() 2021-03-05 10:47:14 -08:00
modff.c Add modf(), modff(), and modfl() 2021-03-05 10:47:14 -08:00
modfl.c Add modf(), modff(), and modfl() 2021-03-05 10:47:14 -08:00
nearbyint.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
nearbyintf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
nearbyintl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
nextafter.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
nextafterf.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
nextafterl.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
nexttoward.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
nexttowardf.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
nexttowardl.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
pow.S Add more math fixes 2021-03-06 11:44:40 -08:00
powf.S Add more math fixes 2021-03-06 11:44:40 -08:00
powfin.c Add more math fixes 2021-03-06 11:44:40 -08:00
powi.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
powif.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
powil.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
powl.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
remainder.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
remainderf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
remainderl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
remquo.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
remquof.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
remquol.c Add more math functions (#128) 2021-03-17 20:05:12 -07:00
rint.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rintf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rintl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
round.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
roundf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
roundl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
scalb.S Add more math fixes 2021-03-06 11:44:40 -08:00
scalbf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
scalbl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
signbit.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
signbitf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
signbitl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
signgam.c Add error and gamma functions 2021-03-02 11:58:00 -08:00
significand.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
significandf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
significandl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sin.S Add more math fixes 2021-03-06 11:44:40 -08:00
sincos.S Add more math fixes 2021-03-06 11:44:40 -08:00
sincosf.S Add more math fixes 2021-03-06 11:44:40 -08:00
sincosl.S Add more math fixes 2021-03-06 11:44:40 -08:00
sinf.S Add more math fixes 2021-03-06 11:44:40 -08:00
sinh.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
sinhf.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
sinhl.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
sinl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sqrt.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sqrtf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sqrtl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tan.S Add more math fixes 2021-03-06 11:44:40 -08:00
tanf.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tanh.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
tanhf.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
tanhl.c Fix issues revealed by ECMAScript test262 2021-04-10 17:15:35 -07:00
tanl.S Add more math fixes 2021-03-06 11:44:40 -08:00
tinymath.mk Make gdtoa less tunable (#104) 2021-03-07 16:41:59 -08:00
trunc.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
truncf.S Add more libm unit tests and fixes 2021-03-02 13:57:23 -08:00
truncl.S Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00