tinycc/win32/include
Avi Halachmi (:avih) 9d33388b29 win: libm: add implementation for round/fmin/fmax and variants
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.
2015-11-07 22:31:57 +02:00
..
sec_api win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
sys add version number to manpage 2013-02-17 00:48:51 +01:00
tcc win: libm: add implementation for round/fmin/fmax and variants 2015-11-07 22:31:57 +02:00
winapi win32: UUID typedef added 2015-09-25 03:42:44 +03:00
_mingw.h tcc -vv/--print-search-dirs: print more info 2013-02-10 00:38:40 +01:00
assert.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
conio.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
ctype.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dir.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
direct.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dirent.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dos.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
errno.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
excpt.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
fcntl.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
fenv.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
inttypes.h add version number to manpage 2013-02-17 00:48:51 +01:00
io.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
limits.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
locale.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
malloc.h win32: malloc.h: fix win32 tcc-tcc complication by correcting _STATIC_ASSERT, ideas from mingw-w64 changeset 4293 2012-12-31 08:59:50 +08:00
math.h win: math.h: fix fpclassify/signbit/etc - use C instead of broken asm 2015-11-07 22:18:46 +02:00
mem.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
memory.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
process.h win32/include/process.h: update prototypes to match mingw. 2014-04-12 00:09:57 -04:00
setjmp.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
share.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
signal.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
stdint.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
stdio.h add version number to manpage 2013-02-17 00:48:51 +01:00
stdlib.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
string.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
tchar.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
time.h win32/include: enable _timezone etc variables. 2011-07-11 18:44:47 +02:00
vadefs.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
values.h dos2unix 2005-04-17 13:10:37 +00:00
wchar.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
wctype.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
winsock2.h win32/include/winsock2.h (look previous commit) 2015-03-03 22:45:50 +03:00