cprojf.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/cprojf.c
blob: 15a874bb2f8bbf7ddf337e4233eb97fd3217dccc (plain) (blame)
1
2
3
4
5
6
7
8
#include "complex_impl.h"
float complex cprojf(float complex z)
{
	if (isinf(crealf(z)) || isinf(cimagf(z)))
		return CMPLXF(INFINITY, copysignf(0.0, cimagf(z)));
	return z;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 03:08:09 +0000

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