From fc7f4691d331acb206c9be2643fc2572eabac0e1 Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Mon, 12 Sep 2016 17:11:45 -0500 Subject: Remove __nan{f,,l} macros Use the GCC builtin instead. With the exception of the files built from a template, they are unused. This is preparation for making the s_nanF objects generated. --- sysdeps/generic/math-type-macros.h | 2 +- sysdeps/generic/math_private.h | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/math-type-macros.h b/sysdeps/generic/math-type-macros.h index bd9e25a..78b883c 100644 --- a/sysdeps/generic/math-type-macros.h +++ b/sysdeps/generic/math-type-macros.h @@ -74,7 +74,7 @@ #define __M_CONCAT(a,b) a ## b #define __M_CONCATX(a,b) __M_CONCAT(a,b) -#define M_NAN M_SUF (__nan) ("") +#define M_NAN M_SUF (__builtin_nan) ("") #define M_MAX_EXP __M_CONCATX (M_PFX, _MAX_EXP) #define M_MIN __M_CONCATX (M_PFX, _MIN) #define M_MAX __M_CONCATX (M_PFX, _MAX) diff --git a/sysdeps/generic/math_private.h b/sysdeps/generic/math_private.h index 24adcfb..28e5df0 100644 --- a/sysdeps/generic/math_private.h +++ b/sysdeps/generic/math_private.h @@ -775,11 +775,4 @@ libc_feresetround_noex_ctx (struct rm_ctx *ctx) SET_RESTORE_ROUND_GENERIC (RM, libc_feholdsetround_53bit, \ libc_feresetround_53bit) -#define __nan(str) \ - (__builtin_constant_p (str) && str[0] == '\0' ? NAN : __nan (str)) -#define __nanf(str) \ - (__builtin_constant_p (str) && str[0] == '\0' ? NAN : __nan (str)) -#define __nanl(str) \ - (__builtin_constant_p (str) && str[0] == '\0' ? NAN : __nan (str)) - #endif /* _MATH_PRIVATE_H_ */ -- cgit v1.1