mailing list of musl libc
 help / color / mirror / code / Atom feed
586328ce14d662ec8e625af4e7707daa4dd15dac blob 243 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#include "complex_impl.h"

/* acosh(z) = +-i acos(z) */

double complex cacosh(double complex z)
{
	int zineg = signbit(cimag(z));

	z = cacos(z);
	if (zineg) return CMPLX(cimag(z), -creal(z));
	else       return CMPLX(-cimag(z), creal(z));
}
debug log:

solving 586328ce ...
found 586328ce in https://inbox.vuxu.org/musl/20240310200040.GF1884416@port70.net/
found 76127f75 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 76127f75f4bb1b4369bf98d209c0089e2ff86bca	src/complex/cacosh.c

applying [1/1] https://inbox.vuxu.org/musl/20240310200040.GF1884416@port70.net/
diff --git a/src/complex/cacosh.c b/src/complex/cacosh.c
index 76127f75..586328ce 100644

Checking patch src/complex/cacosh.c...
Applied patch src/complex/cacosh.c cleanly.

index at:
100644 586328ce14d662ec8e625af4e7707daa4dd15dac	src/complex/cacosh.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).