Back to index

glibc  2.9
w_sinh.c
Go to the documentation of this file.
00001 /* @(#)w_sinh.c 5.1 93/09/24 */
00002 /*
00003  * ====================================================
00004  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00005  *
00006  * Developed at SunPro, a Sun Microsystems, Inc. business.
00007  * Permission to use, copy, modify, and distribute this
00008  * software is freely granted, provided that this notice
00009  * is preserved.
00010  * ====================================================
00011  */
00012 
00013 #if defined(LIBM_SCCS) && !defined(lint)
00014 static char rcsid[] = "$NetBSD: w_sinh.c,v 1.6 1995/05/10 20:49:51 jtc Exp $";
00015 #endif
00016 
00017 /*
00018  * wrapper sinh(x)
00019  */
00020 
00021 #include <math.h>
00022 #include "math_private.h"
00023 
00024 #ifdef __STDC__
00025        double __sinh(double x)            /* wrapper sinh */
00026 #else
00027        double __sinh(x)                   /* wrapper sinh */
00028        double x;
00029 #endif
00030 {
00031 #ifdef _IEEE_LIBM
00032        return __ieee754_sinh(x);
00033 #else
00034        double z;
00035        z = __ieee754_sinh(x);
00036        if(_LIB_VERSION == _IEEE_) return z;
00037        if(!__finite(z)&&__finite(x)) {
00038            return __kernel_standard(x,x,25); /* sinh overflow */
00039        } else
00040            return z;
00041 #endif
00042 }
00043 weak_alias (__sinh, sinh)
00044 #ifdef NO_LONG_DOUBLE
00045 strong_alias (__sinh, __sinhl)
00046 weak_alias (__sinh, sinhl)
00047 #endif