]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/ieee754/ldbl-128/w_expl.c
1 /* w_expl.c -- long double version of w_exp.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
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
14 * ====================================================
17 #if defined(LIBM_SCCS) && !defined(lint)
18 static char rcsid
[] = "$NetBSD: $";
26 #include <math_private.h>
28 long double __expl(long double x
) /* wrapper exp */
31 return __ieee754_expl(x
);
33 long double z
= __ieee754_expl (x
);
34 if (__glibc_unlikely (!isfinite (z
) || z
== 0)
35 && isfinite (x
) && _LIB_VERSION
!= _IEEE_
)
36 return __kernel_standard_l (x
, x
, 206 + !!signbit (x
));
42 weak_alias (__expl
, expl
)