Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fast Square Root Challenge

Name: Anonymous 2010-07-05 16:04

Design a fast square root function which computes double floating point numbers faster than SQRTSD(SSE2). Bonus for precision.

Name: Anonymous 2013-07-30 23:52

'sqrt' is pronounced 'squirt'.

Name: Anonymous 2013-07-30 23:54

'wasp' is pronounced 'waseepeenoo'.

Name: Anonymous 2013-07-31 0:26

did skippy do it better?

Name: Anonymous 2013-07-31 1:08

OMG

tartval = n;

Name: Anonymous 2013-07-31 3:57

...best square root function ever even? xD

Name: Anonymous 2013-07-31 4:07

(a+b)^3 next?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-07-31 4:24


          SQRTSD   FSQRT
AMD K8    24-27    12-27
AMD K10   24-27    35
Bulldozer 24-26    10-53
P4        38       43
P4E       40       45
Pentium M 5-58     8-9(!)
Bobcat    24       31
Merom     6-58     6-69
Wolfdale  6-20     6-20
Nehalem   7-32     27
Sandy     10-21    10-24
Haswell   9-18     8-23

Atom      60       71
Clownlake 53       50


Some models use a fixed-latency algorithm, some use a variable one. You are NOT going to beat the latter with anything. The trend is to go variable for the performance line and fixed for the mobile/lower-power. Clearly CISC superiority.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-07-31 4:32

And FYI everyone doing the >>=2 thing: first of all this isn't a floating point sqrt, and secondly executing just that one statement alone 32 times is going to take at least 32 cycles. Now factor in the cost of doing the test + branch and everything inside the loop body... can't beat microcode.

Name: Anonymous 2013-07-31 5:46

http://en.wikipedia.org/wiki/List_of_Intel_codenames
Intel has historically named integrated circuit (IC) development projects after geographical names of towns, rivers or mountains near the location of the Intel facility responsible for the IC. Many of these are in the American West, particularly in Oregon (where most of Intel's CPU projects are designed; see famous codenames). As Intel's development activities have expanded, this nomenclature has expanded to Israel and India...
Wellsburg     Chipset     PCH for two- and four-socket servers based on the Grantley-EP platform. Successor to Patsburg.     Reference unknown.     2012

Name: Anonymous 2013-07-31 5:59

Gesher     CPU architecture     A processor microarchitecture, the successor to Nehalem. Renamed to Sandy Bridge after it was discovered that Gesher is also the name of a political party in Israel.[19]     The Hebrew word for 'bridge'.     2011

Name: Anonymous 2013-07-31 6:30

Gesher (political party) - Wikipedia, the free encyclopedia
en.wikipedia.org/wiki/Gesher_(political_party)‎
Gesher (Hebrew: גֶּשֶׁר, lit. Bridge), officially Gesher - National Social Movement (Hebrew: גשר - תנועה חברתית לאומית‎, Gesher - Teno'a Hevratit Le'umit) was a ...?

Name: Anonymous 2013-07-31 8:38



function result = cubertX(n)

iter=0;

pdata = [];

tartval = n/8.0;

solval = 0;

check = n - (tartval*tartval*tartval)

while(abs(check) > 1.0e-8)

  iter++;

  pdata(iter) = tartval;

  solval = check / (tartval * tartval * 3);

  tartval = tartval + solval;

  check = n - (tartval*tartval*tartval);

  if(iter>30)

    break;

    endif;

  endwhile;

result = tartval;

iter

plot(pdata)

endfunction

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List