summaryrefslogtreecommitdiff
path: root/include/math.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-15implement sincosf and sincosl functions; add prototypesRich Felker1-0/+3
presumably broken gcc may generate calls to these, and it's said that ffmpeg makes use of sincosf.
2012-03-13first commit of the new libm!Rich Felker1-9/+64
thanks to the hard work of Szabolcs Nagy (nsz), identifying the best (from correctness and license standpoint) implementations from freebsd and openbsd and cleaning them up! musl should now fully support c99 float and long double math functions, and has near-complete complex math support. tgmath should also work (fully on gcc-compatible compilers, and mostly on any c99 compiler). based largely on commit 0376d44a890fea261506f1fc63833e7a686dca19 from nsz's libm git repo, with some additions (dummy versions of a few missing long double complex functions, etc.) by me. various cleanups still need to be made, including re-adding (if they're correct) some asm functions that were dropped.
2012-03-02fix nan/infinity macros in math.h, etc.Rich Felker1-6/+8
the previous version not only failed to work in c++, but also failed to produce constant expressions, making the macros useless as initializers for objects of static storage duration. gcc 3.3 and later have builtins for these, which sadly seem to be the most "portable" solution. the alternative definitions produce exceptions (for NAN) and compiler warnings (for INFINITY) on newer versions of gcc.
2012-03-02typo in math.h c version checkRich Felker1-1/+1
2012-03-02make math.h compatibe with c89Rich Felker1-1/+5
2012-02-15add float_t and double_t to math.hRich Felker1-0/+2
2011-11-10fix all missing instances of __cplusplus checks/extern "C" in headersRich Felker1-0/+8
patch by Arvid Picciani (aep)
2011-06-08isgreater etc. relation macros for math.hRich Felker1-0/+18
2011-02-14extensive header cleanup for standards conformance & correctnessRich Felker1-17/+19
thanks to Peter Mazinger (psm) for pointing many of these issues out and submitting a patch on which this commit is loosely based
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+300