source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops_sqrt.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 462 bytes
Line 
1function 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.
11f = 8; % P4
12%f = 15; % neutral
13
Note: See TracBrowser for help on using the repository browser.