summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libm/cosh.c
blob: f64d591061163bac1d92da2e7c9fa7bd3be7f94f (plain)
1
2
3
4
5
6
7
8
9
#include <math.h>

extern const float  __half;

double  cosh ( double x )
{
    long double  y = exp (x);
    return (y + 1./y) * __half;
}