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