diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-05-16 06:03:08 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-05-16 06:03:08 +0200 |
commit | 9761bf4dfae04016bccaa82414719523b090dd60 (patch) | |
tree | 1abcf3d350f8540e87f3850cb111a13cfaf66d8f /sysdeps/ieee754 | |
parent | 69a01461ee1417578d2ba20aac935828b50f1118 (diff) | |
download | glibc-9761bf4dfae04016bccaa82414719523b090dd60.zip glibc-9761bf4dfae04016bccaa82414719523b090dd60.tar.gz glibc-9761bf4dfae04016bccaa82414719523b090dd60.tar.bz2 |
math: Merge strtod_nan_*.h into math-type-macros-*.h
This change will eventually make it possible to compile
stdlib/strtod_nan_main.c as part of math/s_nan_template.c.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/float128/math-nan-payload-float128.h (renamed from sysdeps/ieee754/float128/strtod_nan_float128.h) | 7 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/strtof128_nan.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/float128/wcstof128_nan.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h (renamed from sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h) | 5 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h (renamed from sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h) | 5 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h (renamed from sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h) | 5 |
6 files changed, 12 insertions, 17 deletions
diff --git a/sysdeps/ieee754/float128/strtod_nan_float128.h b/sysdeps/ieee754/float128/math-nan-payload-float128.h index c3eaca4..95ab953 100644 --- a/sysdeps/ieee754/float128/strtod_nan_float128.h +++ b/sysdeps/ieee754/float128/math-nan-payload-float128.h @@ -1,4 +1,4 @@ -/* Convert string for NaN payload to corresponding NaN. For _Float128. +/* NaN payload handling for _Float128. Copyright (C) 2017-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -16,8 +16,9 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define FLOAT _Float128 -#define SET_MANTISSA(flt, mant) \ +#include <ieee754_float128.h> + +#define SET_NAN_PAYLOAD(flt, mant) \ do \ { \ union ieee854_float128 u; \ diff --git a/sysdeps/ieee754/float128/strtof128_nan.c b/sysdeps/ieee754/float128/strtof128_nan.c index 36a9bff..37a7f4e 100644 --- a/sysdeps/ieee754/float128/strtof128_nan.c +++ b/sysdeps/ieee754/float128/strtof128_nan.c @@ -19,10 +19,8 @@ #include <math.h> -#include <float128_private.h> - #include <strtod_nan_narrow.h> -#include <strtod_nan_float128.h> +#include <math-type-macros-float128.h> #define STRTOD_NAN __strtof128_nan #include <stdlib/strtod_nan_main.c> diff --git a/sysdeps/ieee754/float128/wcstof128_nan.c b/sysdeps/ieee754/float128/wcstof128_nan.c index ffc72a0..f504809 100644 --- a/sysdeps/ieee754/float128/wcstof128_nan.c +++ b/sysdeps/ieee754/float128/wcstof128_nan.c @@ -18,7 +18,6 @@ <http://www.gnu.org/licenses/>. */ #include <stdlib/strtod_nan_wide.h> -#include <float128_private.h> -#include <strtod_nan_float128.h> +#include <math-type-macros-float128.h> #define STRTOD_NAN __wcstof128_nan #include <stdlib/strtod_nan_main.c> diff --git a/sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h b/sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h index 77d81ac..e2f092d 100644 --- a/sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h +++ b/sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h @@ -1,4 +1,4 @@ -/* Convert string for NaN payload to corresponding NaN. For ldbl-128. +/* NaN payload handling for ldbl-128. Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -16,8 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define FLOAT long double -#define SET_MANTISSA(flt, mant) \ +#define SET_NAN_PAYLOAD(flt, mant) \ do \ { \ union ieee854_long_double u; \ diff --git a/sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h b/sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h index cfa9c1e..6534075 100644 --- a/sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h +++ b/sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h @@ -1,4 +1,4 @@ -/* Convert string for NaN payload to corresponding NaN. For ldbl-128ibm. +/* NaN payload handling or ldbl-128ibm. Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -16,8 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define FLOAT long double -#define SET_MANTISSA(flt, mant) \ +#define SET_NAN_PAYLOAD(flt, mant) \ do \ { \ union ibm_extended_long_double u; \ diff --git a/sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h b/sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h index 08104b7..ab2542c 100644 --- a/sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h +++ b/sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h @@ -1,4 +1,4 @@ -/* Convert string for NaN payload to corresponding NaN. For ldbl-96. +/* NaN payload handling for ldbl-96. Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -16,8 +16,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define FLOAT long double -#define SET_MANTISSA(flt, mant) \ +#define SET_NAN_PAYLOAD(flt, mant) \ do \ { \ union ieee854_long_double u; \ |