math: new logf
authorSzabolcs Nagy <nsz@port70.net>
Sun, 22 Oct 2017 14:19:20 +0000 (14:19 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 18 Apr 2019 03:42:38 +0000 (23:42 -0400)
commitdb505b794c697631f65e6b91ff106496debb86ac
tree2a1b54ce3017522a6f7b0d4e76e3cedfa1629889
parent169fc008d8daf5265847c593b1c78f3513d9172b
math: new logf

from https://github.com/ARM-software/optimized-routines,
commit 04884bd04eac4b251da4026900010ea7d8850edc,
with minor changes to better fit into musl.

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

-Os:
  logf rthruput:   8.40 ns/call  6.14 ns/call 1.37x
   logf latency:  31.79 ns/call 24.33 ns/call 1.31x
-O3:
  logf rthruput:   8.43 ns/call  5.58 ns/call 1.51x
   logf latency:  32.04 ns/call 20.88 ns/call 1.53x
src/math/logf.c
src/math/logf_data.c [new file with mode: 0644]
src/math/logf_data.h [new file with mode: 0644]