diff options
author | Patrick McGehearty <patrick.mcgehearty@oracle.com> | 2018-04-15 18:46:37 -0400 |
---|---|---|
committer | Patrick McGehearty <patrick.mcgehearty@oracle.com> | 2018-04-15 18:46:37 -0400 |
commit | a14d8acd3261a7290e572a3cf435509ecd6e96d4 (patch) | |
tree | 31005eefa4147504e9ac0cc14aea39e4f601c1d2 /Makerules | |
parent | a700e7cb3799316e1b23879b4cf0891f5703acb1 (diff) | |
download | glibc-a14d8acd3261a7290e572a3cf435509ecd6e96d4.tar.gz glibc-a14d8acd3261a7290e572a3cf435509ecd6e96d4.tar.xz glibc-a14d8acd3261a7290e572a3cf435509ecd6e96d4.zip |
Improves __ieee754_exp(x) performance by 18-37% when |x| < 1.0397
Adds a fast path to e_exp.c when |x| < 1.03972053527832. When values are tested in isolation, reduction in execution time is: aarch 30%, sparc 18%, x86 37%. When comparing benchtests/bench.out which includes values outside that range, the gains are: aarch 8%, sparc 5%, x86 9%. make check is clean (no increase in ulp for any math test). Testing 20M values for each rounding mode in that range shows approximately one in 200 values is off by 1 ulp. No value tested for exp(x) changed by 2 or more ulp. No observed change in performance or accuracy for x outside fast path range. These changes will be active for all platforms that don't provide their own exp() routines. They will also be active for ieee754 versions of ccos, ccosh, cosh, csin, csinh, sinh, exp10, gamma, and erf.
Diffstat (limited to 'Makerules')
0 files changed, 0 insertions, 0 deletions