2016-09-20 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
+ * math/s_nanf.c: Remove __nanf undef.
+ * math/s_nan.c: Remove __nan undef.
+ * math/s_nanl.c: Remove __nanl undef.
+
+ * sysdeps/generic/math_private.h (__nan): Remove macro
+ override.
+ (__nanf): Likewise.
+ (__nanl): Likewise.
+
+2016-09-20 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
+
* math/Makefile (gen-all-calls): New variable.
(generated): Replace gen-libm-calls with gen-all-calls.
(gen-libm-templates.stmp): Likewise. Also, ensure
#include <ieee754.h>
-#undef __nan
double
__nan (const char *tagp)
{
#include <ieee754.h>
-#undef __nanf
float
__nanf (const char *tagp)
{
#include <ieee754.h>
-#undef __nanl
long double
__nanl (const char *tagp)
{
#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)
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_ */