2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
6 #include "cephes_mconf.h"
12 long double coshl(long double x
)
15 int x_class
= fpclassify (x
);
16 if (x_class
== FP_NAN
)
21 else if (x_class
== FP_INFINITE
)
27 if (x
> (MAXLOGL
+ LOGE2L
))
36 if (x
>= (MAXLOGL
- LOGE2L
))
43 y
= 0.5L * (y
+ 1.0L / y
);