Skip to content

exp10: Add cr_exp10 from CORE-MATH#1155

Draft
tgross35 wants to merge 2 commits intorust-lang:mainfrom
tgross35:core-exp10
Draft

exp10: Add cr_exp10 from CORE-MATH#1155
tgross35 wants to merge 2 commits intorust-lang:mainfrom
tgross35:core-exp10

Conversation

@tgross35
Copy link
Copy Markdown
Contributor

This was our function with the worst precision. Replace our current
implementation with the CORE-MATH correctly rounded version.

Source: https://gitlab.inria.fr/core-math/core-math/-/blob/93d9f3bab7561cfb62f746f7e70c0888bb5c9a00/src/binary64/exp10/exp10.c

@tgross35 tgross35 marked this pull request as draft March 31, 2026 09:50
@tgross35
Copy link
Copy Markdown
Contributor Author

Obviously there's a bug to fix here, but this is a nice surprise

icount::icount_bench_exp10_group::icount_bench_exp10 logspace:setup_exp10()
  Baselines:                      softfloat|softfloat (old)
  Instructions:                       23852|39178                (-39.1189%) [-1.64255x]
  L1 Hits:                            29027|44818                (-35.2336%) [-1.54401x]
  LL Hits:                                5|12                   (-58.3333%) [-2.40000x]
  RAM Hits:                              49|65                   (-24.6154%) [-1.32653x]
  Total read+write:                   29081|44895                (-35.2244%) [-1.54379x]
  Estimated Cycles:                   30767|47153                (-34.7507%) [-1.53258x]

@rustbot

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants