mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
Support defining strfromf32 alias.
This patch adds support for defining strfromf32 as an alias of strfromf when _Float32 support is enabled. Tested for x86_64; also tested with build-many-glibcs.py in conjunction with other _Float32 changes. * stdlib/strfromf.c: Include <bits/floatn.h>. [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define and later undefine as macro and define as weak alias.
This commit is contained in:
parent
e420d22826
commit
fc10cc3f32
@ -1,5 +1,9 @@
|
||||
2017-12-06 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* stdlib/strfromf.c: Include <bits/floatn.h>.
|
||||
[__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
|
||||
and later undefine as macro and define as weak alias.
|
||||
|
||||
* math/test-float32.h: New file.
|
||||
|
||||
* sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
|
||||
|
@ -16,7 +16,23 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <bits/floatn.h>
|
||||
|
||||
#define FLOAT float
|
||||
#define STRFROM strfromf
|
||||
|
||||
#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
|
||||
# define strfromf32 __hide_strfromf32
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
|
||||
# undef strfromf32
|
||||
#endif
|
||||
|
||||
#include "strfrom-skeleton.c"
|
||||
|
||||
#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
|
||||
weak_alias (strfromf, strfromf32)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user