diff options
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_exp10l.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/e_exp10l.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/ieee754/ldbl-128/e_exp10l.c b/sysdeps/ieee754/ldbl-128/e_exp10l.c index 987002567a..9b1ff9d821 100644 --- a/sysdeps/ieee754/ldbl-128/e_exp10l.c +++ b/sysdeps/ieee754/ldbl-128/e_exp10l.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2016 Free Software Foundation, Inc. +/* Copyright (C) 2012-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,15 +19,15 @@ #include <math_private.h> #include <float.h> -static const long double log10_high = 0x2.4d763776aaa2bp0L; -static const long double log10_low = 0x5.ba95b58ae0b4c28a38a3fb3e7698p-60L; +static const _Float128 log10_high = L(0x2.4d763776aaa2bp0); +static const _Float128 log10_low = L(0x5.ba95b58ae0b4c28a38a3fb3e7698p-60); -long double -__ieee754_exp10l (long double arg) +_Float128 +__ieee754_exp10l (_Float128 arg) { ieee854_long_double_shape_type u; - long double arg_high, arg_low; - long double exp_high, exp_low; + _Float128 arg_high, arg_low; + _Float128 exp_high, exp_low; if (!isfinite (arg)) return __ieee754_expl (arg); @@ -35,8 +35,8 @@ __ieee754_exp10l (long double arg) return LDBL_MIN * LDBL_MIN; else if (arg > LDBL_MAX_10_EXP + 1) return LDBL_MAX * LDBL_MAX; - else if (fabsl (arg) < 0x1p-116L) - return 1.0L; + else if (fabsl (arg) < L(0x1p-116)) + return 1; u.value = arg; u.parts64.lsw &= 0xfe00000000000000LL; |