mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
2cec876a59
The C11 standard introduced a set of macros (CMPLX, CMPLXF, CMPLXL) that can be used to construct complex numbers from a pair of real and imaginary numbers. Unfortunately, they require some compiler support, which is why we only define them for Clang and GCC>=4.7. The cpack() function in libm performs the same task as CMPLX(), but cannot be used to generate compile-time constants. This means that all invocations of cpack() can safely be replaced by C11's CMPLX(). To keep the code building with GCC 4.2, provide copies of CMPLX() that can at least be used to generate run-time complex numbers. This makes it easier to build some of the functions outside of libm. |
||
---|---|---|
.. | ||
e_lgammal_r.c | ||
e_rem_pio2l.h | ||
invtrig.c | ||
invtrig.h | ||
k_cosl.c | ||
k_expl.h | ||
k_sinl.c | ||
k_tanl.c | ||
s_erfl.c | ||
s_exp2l.c | ||
s_expl.c | ||
s_logl.c | ||
s_nanl.c |