X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fcomplex%2F__cexp.c;h=003d20af6efb72252438b68d88c0c39e19bb27b3;hb=f897461d4fe72bb71854a6d0662de83008caccb7;hp=f603e2be4d298a739ed8be6664150b6a76a10b8f;hpb=b69f695acedd4ce2798ef9ea28d834ceccc789bd;p=musl diff --git a/src/complex/__cexp.c b/src/complex/__cexp.c index f603e2be..003d20af 100644 --- a/src/complex/__cexp.c +++ b/src/complex/__cexp.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. */ -#include "libm.h" +#include "complex_impl.h" static const uint32_t k = 1799; /* constant for reduction */ static const double kln2 = 1246.97177782734161156; /* k * ln2 */ @@ -83,5 +83,5 @@ double complex __ldexp_cexp(double complex z, int expt) half_expt = expt - half_expt; INSERT_WORDS(scale2, (0x3ff + half_expt) << 20, 0); - return cpack(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); + return CMPLX(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); }