[PATCH] Build s_nan* objects from a generic template
Joseph Myers
joseph@codesourcery.com
Fri Sep 16 23:14:00 GMT 2016
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
More information about the Libc-alpha
mailing list