﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-sundeepblue-最新评论</title><link>http://www.cnblogs.com/sundeepblue/CommentsRSS.aspx</link><description>Computer Graphics, CAGD, Demoscene, intro
[crack each line of code, cram each bit of byte, create each idea of mind]</description><language>zh-cn</language><pubDate>Fri, 02 Nov 2007 20:15:09 GMT</pubDate><lastBuildDate>Fri, 02 Nov 2007 20:15:09 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: Inline Assembly in VC++ and gcc</title><link>http://www.cnblogs.com/sundeepblue/archive/2008/05/26/846939.html#1209379</link><dc:creator>lost_passenger</dc:creator><author>lost_passenger</author><pubDate>Mon, 26 May 2008 06:50:55 GMT</pubDate><guid>http://www.cnblogs.com/sundeepblue/archive/2008/05/26/846939.html#1209379</guid><description><![CDATA[Good article!<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sundeepblue/" target="_blank">lost_passenger</a> 2008-05-26 14:50 <a href="http://www.cnblogs.com/sundeepblue/archive/2008/05/26/846939.html#1209379#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Airplane: Cool!!!</title><link>http://www.cnblogs.com/sundeepblue/archive/2007/10/09/917333.html#918724</link><dc:creator>越狱第三季</dc:creator><author>越狱第三季</author><pubDate>Tue, 09 Oct 2007 14:53:00 GMT</pubDate><guid>http://www.cnblogs.com/sundeepblue/archive/2007/10/09/917333.html#918724</guid><description><![CDATA[很不错<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sundeepblue/" target="_blank">越狱第三季</a> 2007-10-09 22:53 <a href="http://www.cnblogs.com/sundeepblue/archive/2007/10/09/917333.html#918724#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 我在博客园安家</title><link>http://www.cnblogs.com/sundeepblue/archive/2007/08/25/837502.html#869505</link><dc:creator>fsky</dc:creator><author>fsky</author><pubDate>Sat, 25 Aug 2007 08:59:00 GMT</pubDate><guid>http://www.cnblogs.com/sundeepblue/archive/2007/08/25/837502.html#869505</guid><description><![CDATA[好多东西都不懂~<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sundeepblue/" target="_blank">fsky</a> 2007-08-25 16:59 <a href="http://www.cnblogs.com/sundeepblue/archive/2007/08/25/837502.html#869505#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 快速求平方根的算法</title><link>http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837556</link><dc:creator>夜瞳の小漫</dc:creator><author>夜瞳の小漫</author><pubDate>Tue, 31 Jul 2007 05:30:00 GMT</pubDate><guid>http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837556</guid><description><![CDATA[原来是一个样子的哦。<br>还没有深入的读过，就记下来而已。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sundeepblue/" target="_blank">夜瞳の小漫</a> 2007-07-31 13:30 <a href="http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837556#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 快速求平方根的算法</title><link>http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837553</link><dc:creator>夜瞳の小漫</dc:creator><author>夜瞳の小漫</author><pubDate>Tue, 31 Jul 2007 05:29:00 GMT</pubDate><guid>http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837553</guid><description><![CDATA[《雷神之锤III》里求平方根的函数<br><br>float Q_rsqrt( float number )<br>{<br>long i;<br>float x2, y;<br>const float threehalfs = 1.5F;<br><br>x2 = number * 0.5F;<br>y = number;<br>i = * ( long * ) &amp;y; // evil floating point bit level hacking<br>i = 0x5f3759df - ( i &gt;&gt; 1 ); // what the fuck?<br>y = * ( float * ) &amp;i;<br>y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration<br>// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed<br><br>#ifndef Q3_VM<br>#ifdef __linux__<br>assert( !isnan(y) ); // bk010122 - FPE?<br>#endif<br>#endif<br>return y;<br>}<br>对于 double ,如果在单片机环境可以试试可以使用如下代码<br><br>double InvSqrt(double number)<br>{<br>__int64 i;<br>double x2, y;<br>const double threehalfs = 1.5F;<br><br>x2 = number * 0.5F;<br>y = number;<br>i = * ( __int64 * ) &amp;y; <br>i = 0x5fe6ec85e7de30da - ( i &gt;&gt; 1 ); <br>y = * ( double * ) &amp;i;<br>y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration<br>y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed<br>return y;<br>} <br><br>哈哈。网上找的。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/sundeepblue/" target="_blank">夜瞳の小漫</a> 2007-07-31 13:29 <a href="http://www.cnblogs.com/sundeepblue/archive/2007/07/31/837532.html#837553#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
