Back to index

glibc  2.9
w_exp10l.c
Go to the documentation of this file.
00001 /* w_exp10l.c -- long double version of w_exp10.c.
00002  * Conversion to long double by Ulrich Drepper,
00003  * Cygnus Support, drepper@cygnus.com.
00004  */
00005 
00006 /*
00007  * ====================================================
00008  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00009  *
00010  * Developed at SunPro, a Sun Microsystems, Inc. business.
00011  * Permission to use, copy, modify, and distribute this
00012  * software is freely granted, provided that this notice
00013  * is preserved.
00014  * ====================================================
00015  */
00016 
00017 /*
00018  * wrapper exp10l(x)
00019  */
00020 
00021 #include <math.h>
00022 #include "math_private.h"
00023 
00024 #ifdef __STDC__
00025        long double __exp10l(long double x)       /* wrapper exp10 */
00026 #else
00027        long double __exp10l(x)                   /* wrapper exp10 */
00028        long double x;
00029 #endif
00030 {
00031 #ifdef _IEEE_LIBM
00032        return __ieee754_exp10l(x);
00033 #else
00034        long double z;
00035        z = __ieee754_exp10l(x);
00036        if(_LIB_VERSION == _IEEE_) return z;
00037        if(!__finitel(z) && __finitel(x)) {
00038            /* exp10 overflow (246) if x > 0, underflow (247) if x < 0.  */
00039            return __kernel_standard(x,x,246+__signbitl(x));
00040        }
00041        return z;
00042 #endif
00043 }
00044 weak_alias (__exp10l, exp10l)
00045 strong_alias (__exp10l, __pow10l)
00046 weak_alias (__pow10l, pow10l)