about summary refs log tree commit diff
path: root/wctype
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-12-04 16:58:08 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-12-04 16:58:08 +0000
commit73895b499b1e290b6f19a5acf37944f663ec6d4e (patch)
tree10384c528e092779fd532798cf44912afa8bd874 /wctype
parent4c1d801a5956f049126ef6cbe22ed23693e77a8c (diff)
downloadglibc-73895b499b1e290b6f19a5acf37944f663ec6d4e.tar.gz
glibc-73895b499b1e290b6f19a5acf37944f663ec6d4e.tar.xz
glibc-73895b499b1e290b6f19a5acf37944f663ec6d4e.zip
Use __floor not floor in sinf.
The new sinf implementation introduced localplt failures for all
platforms where the compiler did not inline the calls to floor
(converted to trunc by machine-independent optimizations).  This patch
changes the calls to use __floor as normal in libm.

We can't use the public function names floor / floorf / floorl /
floorf128 in libm code in the absence of appropriate asms to redirect
floor/trunc calls, if not inlined, to use the internal names instead
(while avoiding breaking code building the floor functions themselves)
- while having such asms and then calling the public functions
unconditionally would be desirable for optimization (few architectures
have __floor inlines in math_private.h, and once the built-in function
is used you don't need them), using __floor is the minimum safe fix
for the present test regressions.

Tested with build-many-glibcs.py that this fixes the localplt test
failure for arm-linux-gnueabi.

	* sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
	of floor.
Diffstat (limited to 'wctype')
0 files changed, 0 insertions, 0 deletions