This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Build s_nan* objects from a generic template
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 16 Sep 2016 23:13:43 +0000
- Subject: Re: [PATCH] Build s_nan* objects from a generic template
- Authentication-results: sourceware.org; auth=none
- References: <b6dd3cfb-8f51-e6de-cfac-2f43cc112e17@linux.vnet.ibm.com>
On Wed, 14 Sep 2016, Paul E. Murphy wrote:
> This requires adding a macro to synthesize the call
> to __strto*_nan. Since this is likely to be the only
> usage ever for strto* functions in generated libm
> calls, a dedicated macro is defined for it.
>
> * math/Makefile (libm-calls): Remove s_nanF.
> (gen-libm-calls): Add s_nanF.
>
> * math/s_nan.c: Refactor into ...
> * math/s_nan_template.c: New file.
>
> * math/s_nanf.c: Removed.
> * math/s_nanl.c: Removed.
> * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
> * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
>
> * sysdeps/generic/math-type-macros-double.h:
> (M_STRTO_NAN): New macro.
> * sysdeps/generic/math-type-macros-float.h: Likewise.
> * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
>
> * sysdeps/generic/math-type-macros.h: Document
> M_STRTO_NAN.
OK.
--
Joseph S. Myers
joseph@codesourcery.com