(yesexpr): Add U005E at the beginning. (noexpr): Likewise.
[glibc.git] / math / w_exp10l.c
blob7117873c2215f2d0b6df0eabc3fb2169e6093110
1 /* w_exp10l.c -- long double version of w_exp10.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
4 */
6 /*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
10 * Developed at SunPro, a Sun Microsystems, Inc. business.
11 * Permission to use, copy, modify, and distribute this
12 * software is freely granted, provided that this notice
13 * is preserved.
14 * ====================================================
18 * wrapper exp10l(x)
21 #include "math.h"
22 #include "math_private.h"
24 #ifdef __STDC__
25 static const long double
26 #else
27 static long double
28 #endif
29 o_threshold= 4.93207544895866790234755e+03,
30 u_threshold= -4.95104033868549871764588e+03;
32 #ifdef __STDC__
33 long double __exp10l(long double x) /* wrapper exp10 */
34 #else
35 long double __exp10l(x) /* wrapper exp10 */
36 long double x;
37 #endif
39 #ifdef _IEEE_LIBM
40 return __ieee754_exp10l(x);
41 #else
42 long double z;
43 z = __ieee754_exp10l(x);
44 if(_LIB_VERSION == _IEEE_) return z;
45 if(__finitel(x)) {
46 if(x>o_threshold)
47 return __kernel_standard(x,x,246); /* exp10 overflow */
48 else if(x<u_threshold)
49 return __kernel_standard(x,x,247); /* exp10 underflow */
51 return z;
52 #endif
54 weak_alias (__exp10l, exp10l)
55 strong_alias (__exp10l, __pow10l)
56 weak_alias (__pow10l, pow10l)