summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/e_sinh.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-02-04 18:26:06 +0000
committerdas <das@FreeBSD.org>2005-02-04 18:26:06 +0000
commita47af911ba88a733157f219bcea374aafc0e6a34 (patch)
tree358c37c6dfb32659eea19d2a72397142931bc562 /lib/msun/src/e_sinh.c
parente8403b23681c8ac8f2c86499943b43c359a4e301 (diff)
downloadFreeBSD-src-a47af911ba88a733157f219bcea374aafc0e6a34.zip
FreeBSD-src-a47af911ba88a733157f219bcea374aafc0e6a34.tar.gz
Reduce diffs against vendor source (Sun fdlibm 5.3).
Diffstat (limited to 'lib/msun/src/e_sinh.c')
-rw-r--r--lib/msun/src/e_sinh.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/msun/src/e_sinh.c b/lib/msun/src/e_sinh.c
index 76c4576..09b0597 100644
--- a/lib/msun/src/e_sinh.c
+++ b/lib/msun/src/e_sinh.c
@@ -1,11 +1,12 @@
-/* @(#)e_sinh.c 5.1 93/09/24 */
+
+/* @(#)e_sinh.c 1.3 95/01/18 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
- * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
+ * software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
@@ -15,15 +16,15 @@ static char rcsid[] = "$FreeBSD$";
#endif
/* __ieee754_sinh(x)
- * Method :
+ * Method :
* mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2
- * 1. Replace x by |x| (sinh(-x) = -sinh(x)).
- * 2.
+ * 1. Replace x by |x| (sinh(-x) = -sinh(x)).
+ * 2.
* E + E/(E+1)
* 0 <= x <= 22 : sinh(x) := --------------, E=expm1(x)
* 2
*
- * 22 <= x <= lnovft : sinh(x) := exp(x)/2
+ * 22 <= x <= lnovft : sinh(x) := exp(x)/2
* lnovft <= x <= ln2ovft: sinh(x) := exp(x/2)/2 * exp(x/2)
* ln2ovft < x : sinh(x) := x*shuge (overflow)
*
@@ -49,7 +50,7 @@ __ieee754_sinh(double x)
ix = jx&0x7fffffff;
/* x is INF or NaN */
- if(ix>=0x7ff00000) return x+x;
+ if(ix>=0x7ff00000) return x+x;
h = 0.5;
if (jx<0) h = -h;
OpenPOWER on IntegriCloud