diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-09-04 17:53:47 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-09-29 17:17:41 +0100 |
commit | 875c76c7048fe4a8c67c265cdae057cb3ca19f44 (patch) | |
tree | ee66c284e87c2a5b62b7d6e39fcdd0295bd058cc /ChangeLog | |
parent | 90c42e40d06ee35c4a2206fa2e00f49a988ee0c1 (diff) | |
download | glibc-875c76c7048fe4a8c67c265cdae057cb3ca19f44.zip glibc-875c76c7048fe4a8c67c265cdae057cb3ca19f44.tar.gz glibc-875c76c7048fe4a8c67c265cdae057cb3ca19f44.tar.bz2 |
New generic log2f
Similar to the new logf: double precision arithmetics and a small
lookup table is used. The argument reduction step is the same as in
the new logf.
without wrapper on aarch64:
log2f reciprocal-throughput: 2.3x faster
log2f latency: 2.1x faster
old worst case error: 1.72 ulp
new worst case error: 0.75 ulp
aarch64 .text size: -252 bytes
aarch64 .rodata size: +244 bytes
* math/Makefile (type-float-routines): Add e_log2f_data.
* sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
* sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
* sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
(LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
* sysdeps/i386/fpu/e_log2f_data.c: New file.
* sysdeps/ia64/fpu/e_log2f_data.c: New file.
* sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,16 @@ 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com> + * math/Makefile (type-float-routines): Add e_log2f_data. + * sysdeps/ieee754/flt-32/e_log2f.c: New implementation. + * sysdeps/ieee754/flt-32/e_log2f_data.c: New file. + * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define. + (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define. + * sysdeps/i386/fpu/e_log2f_data.c: New file. + * sysdeps/ia64/fpu/e_log2f_data.c: New file. + * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file. + +2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com> + * math/Makefile (type-float-routines): Add e_logf_data. * sysdeps/ieee754/flt-32/e_logf.c: New implementation. * sysdeps/ieee754/flt-32/e_logf_data.c: New file. |