Rev | Line | |
---|
[37] | 1 | function f = flops_exp
|
---|
| 2 | % FLOPS_EXP Flops for exponential
|
---|
| 3 | % FLOPS_EXP returns the number of flops needed to compute the exponential
|
---|
| 4 | % of a scalar.
|
---|
| 5 |
|
---|
| 6 | % This flop count is based on timing the Pentium 4.
|
---|
| 7 | % A neutral flop count is based on source code for C exp() function at
|
---|
| 8 | % http://www.opencores.org/cvsweb.shtml/or1k/newlib/newlib/libm/mathfp/s_exp.c
|
---|
| 9 |
|
---|
| 10 | % if you change this, you should also change flops_pow.
|
---|
| 11 | f = 40; % P4
|
---|
| 12 | %f = 20; % neutral
|
---|
Note: See
TracBrowser
for help on using the repository browser.