Support defining strfromf64, strfromf32x aliases.
commit1f70eae4cf0ca826ddbc2b61720e8aeae1e13de4
authorJoseph Myers <joseph@codesourcery.com>
Tue, 5 Dec 2017 18:01:25 +0000 (5 18:01 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 5 Dec 2017 18:01:25 +0000 (5 18:01 +0000)
tree951fbc8d112991b5f7d7169e78f71ab2a1c04aa3
parente2c4dce5350b8782d311467045c615734b2db270
Support defining strfromf64, strfromf32x aliases.

This patch adds support for defining strfromf64 and strfromf32x
aliases of strfromd when the corresponding types are enabled.

Tested for x86_64; also tested with build-many-glibcs.py in
conjunction with other _Float64 / _Float32x changes.

* stdlib/strfromd.c: Include <bits/floatn.h>.
[__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
and later undefine as macro and define as weak alias.
[__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
Likewise.
ChangeLog
stdlib/strfromd.c