mirror of
https://github.com/frida/tinycc
synced 2024-12-18 19:32:33 +03:00
9d33388b29
round and fmin/fmax are relatively commonly used functions but were not implemented anywhere in the tcc Windows distribution package. Newer mingw(64) math.h stil doesn't include these implementations. Add C implementations for these functions and place it as inline functions at win32/include/tcc/tcc_libm.h - which is already included from math.h . The code is mostly taken from musl-libc rs-1.0 (MIT) [*], musl-libc: http://git.musl-libc.org/cgit/musl/tree/src/math?h=rs-1.0 license: http://git.musl-libc.org/cgit/musl/tree/COPYRIGHT?h=rs-1.0 Potential enhancements: - Check how many useful libm implementations are still missing and consider adding them (some of them already work via the MS runtime). - Consider putting libm implementations in an actual libm.a file, or add a dummy one such that build processes which try to link with libm will not fail. |
||
---|---|---|
.. | ||
sec_api | ||
sys | ||
tcc | ||
winapi | ||
_mingw.h | ||
assert.h | ||
conio.h | ||
ctype.h | ||
dir.h | ||
direct.h | ||
dirent.h | ||
dos.h | ||
errno.h | ||
excpt.h | ||
fcntl.h | ||
fenv.h | ||
inttypes.h | ||
io.h | ||
limits.h | ||
locale.h | ||
malloc.h | ||
math.h | ||
mem.h | ||
memory.h | ||
process.h | ||
setjmp.h | ||
share.h | ||
signal.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
string.h | ||
tchar.h | ||
time.h | ||
vadefs.h | ||
values.h | ||
wchar.h | ||
wctype.h | ||
winsock2.h |