<div dir="ltr"><br><br><div class="gmail_quote">2011/1/5 shimi <span dir="ltr"><<a href="mailto:linux-il@shimi.net">linux-il@shimi.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><br><div class="gmail_quote"><div class="im">On Wed, Jan 5, 2011 at 1:52 PM, shimi <span dir="ltr"><<a href="mailto:linux-il@shimi.net" target="_blank">linux-il@shimi.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div dir="ltr"><div class="gmail_quote"><div><br>It has something to do with the precision attempting algorithm of floating point numbers, and the way it is done on fpu87 in 32bit processors. It tries to get close to the number below a certain point which is impossible, and the algorithm does not check to see if it is not actually progressing in getting closer to the minimal precision error. Hence it's an infinite loop. <br>
<br>Compiling with -mfpmath=sse will also solve the problem.<br><br></div></div></div></blockquote></div><div><br>And a more thorough explanation:<br><br><a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323#c109" target="_blank">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323#c109</a><br>
<br> -- Shimi <br></div></div><br></div></blockquote><div><br></div><meta charset="utf-8">Hi all - <div><br></div><div>A really great paper concerning floating point representation can be found at <a href="http://docs.sun.com/source/806-3568/ncg_goldberg.html">http://docs.sun.com/source/806-3568/ncg_goldberg.html</a> - <h1 align="left" style="font-family: Times; font-size: medium; ">
<font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">What Every Computer Scientist Should Know About Floating-Point Arithmetic</font></h1></div><div><br></div><div>-Mike</div></div></div>