tinycc/win32
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
..
examples Add a demo.bat file to the examples directory on Windows 2015-04-10 07:46:04 +03:00
include win: libm: add implementation for round/fmin/fmax and variants 2015-11-07 22:31:57 +02:00
lib correct a DllMain() declaration in dllcrt1.c and dllmain.c 2015-03-03 22:51:13 +03:00
tools Revert all of my changes to directories & codingstyle. 2015-07-29 16:57:12 -04:00
build-tcc.bat workaround a wine cmd bug in build-tcc.bat 2014-01-20 02:23:34 -08:00
tcc-win32.txt i386-gen: preserve fp control word in gen_cvt_ftoi 2013-08-28 22:55:05 +02:00