This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/9] New generic log2f


On 19/09/17 14:00, Szabolcs Nagy wrote:
> 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

with the committed log2f benchmark it's

reciprocal-throughput: 2.3x faster
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
> 
> 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.
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]