aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-12-05 08:32:19 -0800
committerH.J. Lu <hjl.tools@gmail.com>2017-12-05 08:47:27 -0800
commit91c318e7b91467984bf68014ef37539d084a34ab (patch)
tree2ec4488545ff6dfe0495cd33f07e29a38b17acd4 /ChangeLog
parentc7e882b70563289ac441f2a3565846221e111d00 (diff)
downloadglibc-91c318e7b91467984bf68014ef37539d084a34ab.tar.xz
glibc-91c318e7b91467984bf68014ef37539d084a34ab.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f36d934c52..5636a571fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
+ int.
+ (SINF_FUNC): Likewise. Replace floor with simple casts.
+
2017-12-05 Mike FABIAN <mfabian@redhat.com>
[BZ #22517]