summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2015-07-16 13:42:07 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2015-07-16 13:42:07 +0000
commita4a953a7b9252757346ba945169ea098751f6bfe (patch)
tree6972aa1a4cebdd4c6986245c82f14636cfd4b1ea /lib
parent486c2b0566bb358e74fba997c24ae803c277cc6e (diff)
Adapt previous to extended-precision, and fix single-precision constants.
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/src/s_cacoshl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/s_cacoshl.c b/lib/libm/src/s_cacoshl.c
index 67a2362c273..39ac1db9f2f 100644
--- a/lib/libm/src/s_cacoshl.c
+++ b/lib/libm/src/s_cacoshl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_cacoshl.c,v 1.1 2011/07/08 19:25:31 martynas Exp $ */
+/* $OpenBSD: s_cacoshl.c,v 1.2 2015/07/16 13:42:06 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
@@ -51,6 +51,6 @@ cacoshl(long double complex z)
{
long double complex w;
- w = I * cacosl(z);
+ w = clogl(z + csqrtl(z + 1) * csqrtl(z - 1));
return (w);
}