cproj.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/cproj.c
blob: 9ae1e17c0d8e26c91e0608794427f790bd94b65c (plain) (blame)
1
2
3
4
5
6
7
8
#include "complex_impl.h"
double complex cproj(double complex z)
{
	if (isinf(creal(z)) || isinf(cimag(z)))
		return CMPLX(INFINITY, copysign(0.0, creal(z)));
	return z;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 21:03:43 +0000

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