math: new log2f
authorSzabolcs Nagy <nsz@port70.net>
Sun, 22 Oct 2017 17:39:36 +0000 (17:39 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 18 Apr 2019 03:43:43 +0000 (23:43 -0400)
commit098868b338e9afd3ef844070a94b9b10360d913f
tree423730a900d0e74311a945fc014d961d3ba1d6ba
parentdb505b794c697631f65e6b91ff106496debb86ac
math: new log2f

from https://github.com/ARM-software/optimized-routines,
commit 04884bd04eac4b251da4026900010ea7d8850edc

code size change: +177 bytes.
benchmark on x86_64 before, after, speedup:

-Os:
 log2f rthruput:  11.38 ns/call  5.99 ns/call 1.9x
  log2f latency:  35.01 ns/call 22.57 ns/call 1.55x
-O3:
 log2f rthruput:  10.82 ns/call  5.58 ns/call 1.94x
  log2f latency:  35.13 ns/call 21.04 ns/call 1.67x
src/math/log2f.c
src/math/log2f_data.c [new file with mode: 0644]
src/math/log2f_data.h [new file with mode: 0644]