#
f4e4632a |
|
10-Mar-2015 |
Szabolcs Nagy <nsz@port70.net> |
math: add dummy implementations of 128 bit long double functions This is in preparation for the aarch64 port only to have the long double math symbols available on ld128 platforms. The implementations should be fixed up later once we have proper tests for these functions. Added bigendian handling for ld128 bit manipulations too.
|
#
a414e837 |
|
17-Dec-2014 |
Rich Felker <dalias@aerifal.cx> |
provide CMPLX macros in implementation-internal libm.h this avoids assuming the presence of C11 macro definitions in the public complex.h, which need changes potentially incompatible with the way these macros are being used internally.
|
#
9b0fcb44 |
|
06-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
math: remove STRICT_ASSIGN macro gcc did not always drop excess precision according to c99 at assignments before version 4.5 even if -std=c99 was requested which caused badly broken mathematical functions on i386 when FLT_EVAL_METHOD!=0 but STRICT_ASSIGN was not used consistently and it is worked around for old compilers with -ffloat-store so it is no longer needed the new convention is to get the compiler respect c99 semantics and when excess precision is not harmful use float_t or double_t or to specialize code using FLT_EVAL_METHOD
|
#
afa2aacc |
|
05-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
math: remove libc.h include from libm.h libc.h is only for weak_alias so include it directly where it is used
|
#
8dba5486 |
|
04-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
math: cosmetic cleanup (use explicit union instead of fshape and dshape)
|
#
63b9cc77 |
|
04-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
math: remove *_WORD64 macros from libm.h only fma used these macros and the explicit union is clearer
|
#
94a3d13a |
|
04-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
math: remove old longdbl.h
|
#
af5f6d95 |
|
01-Sep-2013 |
Szabolcs Nagy <nsz@port70.net> |
long double cleanup, initial commit new ldshape union, ld128 support is kept, code that used the old ldshape union was rewritten (IEEEl2bits union of freebsd libm is not touched yet) ld80 __fpclassifyl no longer tries to handle invalid representation
|
#
faea4c99 |
|
11-Dec-2012 |
Szabolcs Nagy <nsz@port70.net> |
make CMPLX macros available in complex.h in non-c11 mode as well
|
#
6d3f1a39 |
|
13-Nov-2012 |
Szabolcs Nagy <nsz@port70.net> |
math: turn off the STRICT_ASSIGN workaround by default the volatile hack in STRICT_ASSIGN is only needed if assignment is not respected and excess precision is kept. gcc -fexcess-precision=standard and -ffloat-store both respect assignment and musl use these flags by default. i kept the macro for now so the workaround may be used for bad compilers in the future.
|
#
cfbaba79 |
|
12-Nov-2012 |
Szabolcs Nagy <nsz@port70.net> |
complex: add C11 CMPLX macros and replace cpack with them
|
#
6ab8136b |
|
06-May-2012 |
nsz <nsz@port70.net> |
add FORCE_EVAL macro to evaluate float expr for their side effect updated nextafter* to use FORCE_EVAL, it can be used in many other places in the math code to improve readability.
|
#
13e400b3 |
|
22-Mar-2012 |
Rich Felker <dalias@aerifal.cx> |
add creal/cimag macros in complex.h (and use them in the functions defs)
|
#
2e8c8fbe |
|
19-Mar-2012 |
nsz <nsz@port70.net> |
don't inline __rem_pio2l so the code size is smaller
|
#
9e2a895a |
|
17-Mar-2012 |
Rich Felker <dalias@aerifal.cx> |
fix loads of missing const in new libm, and some global vars (?!) in powl
|
#
de7db6e9 |
|
16-Mar-2012 |
Rich Felker <dalias@aerifal.cx> |
fix namespace issues for lgamma, etc. standard functions cannot depend on nonstandard symbols
|
#
b69f695a |
|
12-Mar-2012 |
Rich Felker <dalias@aerifal.cx> |
first commit of the new libm! 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.
|