Skip to content

Fast exp#46

Merged
smaret merged 2 commits intolime-rt:masterfrom
allegroLeiden:fast_exp
Jun 26, 2015
Merged

Fast exp#46
smaret merged 2 commits intolime-rt:masterfrom
allegroLeiden:fast_exp

Conversation

@allegroLeiden
Copy link
Copy Markdown
Contributor

This includes a Makefile option to use a lookup-table replacement for the exponential function, which however (due to cunning use of the properties of the function) returns a value with full floating-point precision, indeed with better precision than that for much of the range. Use of this option reduces the run time by 25%.

This works via a lookup table and is mostly implemented in a new module fastexp.c. No perceptible differences in the output can
be seen. The speed increase is not huge, maybe a couple of minutes.
The arrays EXP_TABLE_* need to be defined in order for the tasks to compile, even if they are not filled or accessed. Therefore I
added a nominal definition in this case. I also added a couple of comment lines to fastexp.c.
smaret added a commit that referenced this pull request Jun 26, 2015
Implement a fast exponential function to speed up the code
@smaret smaret merged commit 764eb34 into lime-rt:master Jun 26, 2015
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.

3 participants