glibc/sysdeps/ieee754
H.J. Lu 91c318e7b9 s_sinf.c: Replace floor with simple casts
Since s_sinf.c either assigns the return value of floor to integer or
passes double converted from integer to floor, this patch replaces
floor with simple casts.

Also since long == int for 32-bit targets, we can use long instead of
int to avoid 64-bit integer for 64-bit targets.

On Skylake, bench-sinf reports performance improvement:

           Before        After         Improvement
max        130.566       129.564           30%
min        7.704         7.706             0%
mean       21.8188       19.1363           30%

	* sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
	int.
	(SINF_FUNC): Likewise.  Replace floor with simple casts.
2017-12-05 08:47:27 -08:00
..
dbl-64 Use libm_alias_double for dbl-64 fma. 2017-10-04 20:32:48 +00:00
float128 Add _Float64x function aliases. 2017-11-27 14:16:47 +00:00
flt-32 s_sinf.c: Replace floor with simple casts 2017-12-05 08:47:27 -08:00
ldbl-64-128 Support strtof64x, wcstof64x aliases. 2017-11-24 22:51:53 +00:00
ldbl-96 Support strtof64x, wcstof64x aliases. 2017-11-24 22:51:53 +00:00
ldbl-128 Add _Float64x function aliases. 2017-11-27 14:16:47 +00:00
ldbl-128ibm Add C++ versions of iscanonical for ldbl-96 and ldbl-128ibm (bug 22235) 2017-10-03 16:01:37 -03:00
ldbl-opt Support ldbl-opt libm_alias_double use from .S files. 2017-11-28 00:01:11 +00:00
ieee754.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
k_standard.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
k_standardf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
k_standardl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
Makefile Avoid -Wno-write-strings for k_standard.c. 2015-02-26 22:50:54 +00:00
s_lib_version.c Simplify math-svid-compat code. 2017-08-28 15:19:52 +00:00
s_matherr.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
s_signgam.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00