[PATCH 5/9] New generic log2f
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Sep 19 13:00:00 GMT 2017
Similar to the new logf: double precision arithmetics
and a small lookup table is used. The argument reduction
step is the same as for the new logf.
with naive ubenchmark (on aarch64):
reciprocal-throughput: 2.7x faster
latency: 2x 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
2017-09-19 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05-log2f.diff
Type: text/x-patch
Size: 8958 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170919/02c8e5d1/attachment.bin>
More information about the Libc-alpha
mailing list