Back to index

glibc  2.9
w_acoshf.c
Go to the documentation of this file.
00001 /* w_acoshf.c -- float version of w_acosh.c.
00002  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
00003  */
00004 
00005 /*
00006  * ====================================================
00007  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00008  *
00009  * Developed at SunPro, a Sun Microsystems, Inc. business.
00010  * Permission to use, copy, modify, and distribute this
00011  * software is freely granted, provided that this notice 
00012  * is preserved.
00013  * ====================================================
00014  *
00015  */
00016 
00017 #if defined(LIBM_SCCS) && !defined(lint)
00018 static char rcsid[] = "$NetBSD: w_acoshf.c,v 1.3 1995/05/10 20:48:33 jtc Exp $";
00019 #endif
00020 
00021 /* 
00022  * wrapper acoshf(x)
00023  */
00024 
00025 #include <math.h>
00026 #include "math_private.h"
00027 
00028 #ifdef __STDC__
00029        float __acoshf(float x)            /* wrapper acoshf */
00030 #else
00031        float __acoshf(x)                  /* wrapper acoshf */
00032        float x;
00033 #endif
00034 {
00035 #ifdef _IEEE_LIBM
00036        return __ieee754_acoshf(x);
00037 #else
00038        float z;
00039        z = __ieee754_acoshf(x);
00040        if(_LIB_VERSION == _IEEE_ || __isnanf(x)) return z;
00041        if(x<(float)1.0) {
00042               /* acosh(x<1) */
00043                return (float)__kernel_standard((double)x,(double)x,129);
00044        } else
00045            return z;
00046 #endif
00047 }
00048 weak_alias (__acoshf, acoshf)