Skip to content

Commit

Permalink
math: new pow
Browse files Browse the repository at this point in the history
from /~https://github.com/ARM-software/optimized-routines,
commit 04884bd04eac4b251da4026900010ea7d8850edc

The underflow exception is signaled if the result is in the subnormal
range even if the result is exact.

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

-Os:
   pow rthruput: 102.96 ns/call 33.38 ns/call 3.08x
    pow latency: 144.37 ns/call 54.75 ns/call 2.64x
-O3:
   pow rthruput:  98.91 ns/call 32.79 ns/call 3.02x
    pow latency: 138.74 ns/call 53.78 ns/call 2.58x
  • Loading branch information
Szabolcs Nagy authored and richfelker committed Apr 18, 2019
1 parent e16f7b3 commit e4dd653
Show file tree
Hide file tree
Showing 4 changed files with 521 additions and 303 deletions.
1 change: 1 addition & 0 deletions src/internal/libm.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ union ldshape {
#error SNaN is unsupported
#else
#define issignalingf_inline(x) 0
#define issignaling_inline(x) 0
#endif

#ifndef TOINT_INTRINSICS
Expand Down
Loading

0 comments on commit e4dd653

Please sign in to comment.