Rev | Line | |
---|
[37] | 1 | function f = flops_log
|
---|
| 2 | % FLOPS_LOG Flops for logarithm
|
---|
| 3 | % FLOPS_LOG returns the number of flops needed to compute the logarithm
|
---|
| 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 log() function at
|
---|
| 8 | % http://www.opencores.org/cvsweb.shtml/or1k/newlib/newlib/libm/mathfp/s_log.c
|
---|
| 9 | % s_sine.c is 23 flops.
|
---|
| 10 |
|
---|
| 11 | % if you change this, you should also change flops_pow.
|
---|
| 12 | f = 20; % P4
|
---|
| 13 | %f = 20; % neutral
|
---|
Note: See
TracBrowser
for help on using the repository browser.