cprojl.c\complex\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/complex/cprojl.c
blob: 38a494c5c4b9c14bee615c8b337f17f6adcdc0e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "complex_impl.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long double complex cprojl(long double complex z)
{
	return cproj(z);
}
#else
long double complex cprojl(long double complex z)
{
	if (isinf(creall(z)) || isinf(cimagl(z)))
		return CMPLXL(INFINITY, copysignl(0.0, creall(z)));
	return z;
}
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 10:47:54 +0000

AltStyle によって変換されたページ (->オリジナル) /