mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-03 04:30:08 +08:00
1073b379c8
The gamma() functions are accurate to 13 digits over the full range. Returns INFINITY / NAN identical to other compiler's math libs. #include <stdio.h> #include <math.h> int main() { double x; for (x = -7.0; x <= 520.0; x += 1.0) { printf("tgamma/lgamma %6.3f: %20.13g %20.13g\n", x/3, tgamma(x/3.0), lgamma(x/3.0)); } printf("tgamma/lgamma %g: %20.13g %20.13g\n", 0.00000234, tgamma(0.00000234), lgamma(0.00000234)); printf("log2, exp2, cbrt, cbrt: %.15g %.15g %.15g %.15g\n", log2(1024), exp2(10), cbrt(-10), cbrt(10)); }
63 lines
744 B
Plaintext
63 lines
744 B
Plaintext
*~
|
|
\#*
|
|
.#*
|
|
*.o
|
|
*.a
|
|
*.exe
|
|
*.dll
|
|
*.obj
|
|
*.pdb
|
|
*.lib
|
|
*.exp
|
|
*.log
|
|
*.bz2
|
|
*.zip
|
|
.gdb_history
|
|
a.out
|
|
tcc_g
|
|
tcc
|
|
*-tcc
|
|
libtcc*.def
|
|
|
|
config*.h
|
|
config*.mak
|
|
config.texi
|
|
conftest*
|
|
tags
|
|
TAGS
|
|
tcc.1
|
|
tcc.pod
|
|
tcc-doc.html
|
|
tcc-doc.info
|
|
|
|
win32/doc
|
|
win32/examples/libtcc_test.c
|
|
win32/libtcc
|
|
win32/lib/32
|
|
win32/lib/64
|
|
win32/include/float.h
|
|
win32/include/stdalign.h
|
|
win32/include/stdarg.h
|
|
win32/include/stdbool.h
|
|
win32/include/stddef.h
|
|
win32/include/stdnoreturn.h
|
|
win32/include/varargs.h
|
|
win32/include/tcclib.h
|
|
|
|
tests/tcctest[1234]
|
|
tests/tcctest.gcc
|
|
tests/*.out*
|
|
tests/*.ref
|
|
tests/*.txt
|
|
tests/*.gcc
|
|
tests/*-cc*
|
|
tests/*-tcc*
|
|
tests/libtcc_test
|
|
tests/libtcc_test_mt
|
|
tests/asm-c-connect
|
|
tests/asm-c-connect-sep
|
|
tests/vla_test
|
|
tests/hello
|
|
tests/tests2/fred.txt
|
|
libtcc.dylib
|