]> git.ipfire.org Git - thirdparty/glibc.git/blame - math/w_expl_compat.c
AArch64: use movz/movk instead of literal pools in start.S
[thirdparty/glibc.git] / math / w_expl_compat.c
CommitLineData
bcea7ad6
SN
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.
4 */
5
6/*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 *
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 * ====================================================
15 */
16
17#if defined(LIBM_SCCS) && !defined(lint)
18static char rcsid[] = "$NetBSD: $";
19#endif
20
21/*
22 * wrapper expl(x)
23 */
24
abfbdde1 25#include <math.h>
bcea7ad6
SN
26#include <math_private.h>
27#include <math-svid-compat.h>
abfbdde1 28
bcea7ad6
SN
29#if LIBM_SVID_COMPAT
30long double __expl(long double x) /* wrapper exp */
abfbdde1 31{
bcea7ad6
SN
32# ifdef _IEEE_LIBM
33 return __ieee754_expl(x);
34# else
35 long double z = __ieee754_expl (x);
36 if (__glibc_unlikely (!isfinite (z) || z == 0)
37 && isfinite (x) && _LIB_VERSION != _IEEE_)
38 return __kernel_standard_l (x, x, 206 + !!signbit (x));
abfbdde1 39
bcea7ad6
SN
40 return z;
41# endif
42}
43hidden_def (__expl)
abfbdde1 44weak_alias (__expl, expl)
bcea7ad6 45#endif