Code

History

Commits on dev to win32/include/math.h16
  1. Overhauled WIN32 math and added missing functions: 1) Cleanup: moved function implementations from win32/include/math.h to win32/include/tcc/tcc_libm.h 2) Added missing math functions: MUSL: asinh(), acosh(), atanh(), scalbn(). My impl: log1p(), expm1(), ilogb(), scalbln(), nexttoward() - now only a few are missing: remquo(), remainder(), fma(), nan(), erf(), erfc(), nearbyint(). 3) Added/defined all missing *f() and *l() math functions. 4) Added functions have short but accurate/fast implementations. 5) Added <tgmath.h> for all platforms. (not too useful, IMO, but is C99 standard).Tyge Løvset committed 5 years agob11144d
  2. win32/include/math.h: rint/trunc: pop fp stackgrischka committed 6 years agod019586
  3. Finalizing math.h fixes: - Updated msvcrt.def with symbols from 64bit version of dll - it contains the float math functions missing in the 32bit dll. - Made sure this patch only apply to to WIN32 and WIN64. For WIN32 float functions calls the double variants, on 64bit they are called natively.Tyge committed 6 years ago024214a
  4. Minimum changes to make all float variants of math.h functions work, by calling the double functions and removing unsupported __asm implementations using "=t". This patch also enables the double version of logb(double).Tyge committed 6 years agodf67d86
  5. Spelling fixesLarry Doolittle committed 9 years ago1b6806e
  6. win: math.h: fix fpclassify/signbit/etc - use C instead of broken asmAvi Halachmi (:avih) committed 11 years ago9c52ba4
  7. win: math.h: isnan: use macro, similar to others (still broken)Avi Halachmi (:avih) committed 11 years ago6e261a1
  8. Revert "win32/include/math.h: remoing a "t" modifier usage"Avi Halachmi (:avih) committed 11 years ago7307a6a
  9. win32/include/math.h: remoing a "t" modifier usageseyko committed 11 years ago45bc505
  10. win32/include/winapi changes from https://github.com/run4flat/tinycc.gitseyko committed 11 years ago101cc87
  11. add declaration of the "double trunc (double _x)" and winsock2.h This allow to build a windows version of the nimrod compiler.seyko committed 11 years ago351e2ec
  12. A lrint functions in win32/include/math.h are rewrittem because tcc can't handle "t" constraintseyko committed 11 years ago4b61f7f
  13. Fix "Add support for struct > 4B returned via registers"grischka committed 12 years agofbc8810
  14. win64: use new headers from mingwgrischka committed 17 years agodc251a7
  15. dos2unixbellard committed 21 years ago5556cf1
  16. win32 mergebellard committed 21 years ago4821702