<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for LeetNightshade</title>
	<atom:link href="http://leetnightshade.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://leetnightshade.com</link>
	<description>Realm of leetNightshade</description>
	<lastBuildDate>Sat, 12 May 2012 20:38:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Creating and Optimizing a C++ Function &#8211; sin by leetnightshade</title>
		<link>http://leetnightshade.com/archives/481#comment-2984</link>
		<dc:creator>leetnightshade</dc:creator>
		<pubDate>Sat, 12 May 2012 20:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=481#comment-2984</guid>
		<description>Hey Chris, thanks a lot for the reply!  Moving the negation is a good idea, can&#039;t believe I didn&#039;t think of it.  Though I&#039;m slightly confused, perhaps my brain is still fried from our crunch period, or not having touched this for a while: &quot;you would also need to work out these pre-loop val2 dependencies&quot;.  I believe outside of the loop there aren&#039;t any val2 dependencies, the vars you mention refer to &#039;val&#039;.</description>
		<content:encoded><![CDATA[<p>Hey Chris, thanks a lot for the reply!  Moving the negation is a good idea, can&#8217;t believe I didn&#8217;t think of it.  Though I&#8217;m slightly confused, perhaps my brain is still fried from our crunch period, or not having touched this for a while: &#8220;you would also need to work out these pre-loop val2 dependencies&#8221;.  I believe outside of the loop there aren&#8217;t any val2 dependencies, the vars you mention refer to &#8216;val&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating and Optimizing a C++ Function &#8211; sin by Chris</title>
		<link>http://leetnightshade.com/archives/481#comment-2982</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 10 May 2012 06:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=481#comment-2982</guid>
		<description>Of course, you would also need to work out these pre-loop val2 dependencies for the change I posted: 

 T num = val;
 T expDivFact = val;

-Chris</description>
		<content:encoded><![CDATA[<p>Of course, you would also need to work out these pre-loop val2 dependencies for the change I posted: </p>
<p> T num = val;<br />
 T expDivFact = val;</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating and Optimizing a C++ Function &#8211; sin by Chris</title>
		<link>http://leetnightshade.com/archives/481#comment-2981</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 10 May 2012 05:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=481#comment-2981</guid>
		<description>One more thing you should do is pull the negation operator out of the loop:


   const T val2 = val * val;
        ...
   expDivFact = -expDivFact * val2 / (f * (f - 1));

becomes

   const T val2 = -val * val;
        ...
   expDivFact = expDivFact * val2 / (f * (f - 1));


For T=double, the compiler possibly does this for you during optimization.  A custom numeric class is more likely to see some benefit.

-Chris</description>
		<content:encoded><![CDATA[<p>One more thing you should do is pull the negation operator out of the loop:</p>
<p>   const T val2 = val * val;<br />
        &#8230;<br />
   expDivFact = -expDivFact * val2 / (f * (f &#8211; 1));</p>
<p>becomes</p>
<p>   const T val2 = -val * val;<br />
        &#8230;<br />
   expDivFact = expDivFact * val2 / (f * (f &#8211; 1));</p>
<p>For T=double, the compiler possibly does this for you during optimization.  A custom numeric class is more likely to see some benefit.</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Now employed at Gameloft! by zae</title>
		<link>http://leetnightshade.com/archives/577#comment-2417</link>
		<dc:creator>zae</dc:creator>
		<pubDate>Wed, 09 Nov 2011 01:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=577#comment-2417</guid>
		<description>LUUUUUUUUUCK!  You&#039;ll be fine, sir, because you&#039;ve got the skillz :3</description>
		<content:encoded><![CDATA[<p>LUUUUUUUUUCK!  You&#8217;ll be fine, sir, because you&#8217;ve got the skillz :3</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by leetnightshade</title>
		<link>http://leetnightshade.com/archives/424#comment-2416</link>
		<dc:creator>leetnightshade</dc:creator>
		<pubDate>Tue, 08 Nov 2011 21:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2416</guid>
		<description>Thank you for thanking me, as others haven&#039;t done so! I&#039;m glad to hear my post has been of use, and with that said I&#039;m terribly sorry I haven&#039;t posted the source files all nicely packaged to go.  I will do so, thanks!</description>
		<content:encoded><![CDATA[<p>Thank you for thanking me, as others haven&#8217;t done so! I&#8217;m glad to hear my post has been of use, and with that said I&#8217;m terribly sorry I haven&#8217;t posted the source files all nicely packaged to go.  I will do so, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by leetnightshade</title>
		<link>http://leetnightshade.com/archives/424#comment-2415</link>
		<dc:creator>leetnightshade</dc:creator>
		<pubDate>Tue, 08 Nov 2011 21:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2415</guid>
		<description>Thanks!! When I post the code into my WordPress text block it has issues with &#039;&lt;&#039; and &#039;&gt;&#039; thinking I&#039;m using inline HTML; if I post the code in visual mode it doesn&#039;t actually preserve the formatting of the code, last time I tested it.  So, I&#039;m updating the include, which is &#039;#include &lt;limits.h&gt;&#039;.  I&#039;ve usually been good about catching these, so thanks for catching it and notifying me good sir. :grin:</description>
		<content:encoded><![CDATA[<p>Thanks!! When I post the code into my WordPress text block it has issues with &#8216;< ' and '>&#8216; thinking I&#8217;m using inline HTML; if I post the code in visual mode it doesn&#8217;t actually preserve the formatting of the code, last time I tested it.  So, I&#8217;m updating the include, which is &#8216;#include
<limits .h>&#8216;.  I&#8217;ve usually been good about catching these, so thanks for catching it and notifying me good sir. <img src='http://leetnightshade.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </limits>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by leetnightshade</title>
		<link>http://leetnightshade.com/archives/424#comment-2414</link>
		<dc:creator>leetnightshade</dc:creator>
		<pubDate>Tue, 08 Nov 2011 21:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2414</guid>
		<description>Ah, thanks for catching that.  The file includes math constants, which is named differently in my up-to-date Vector3 class.  One of the constants used here that is in the &#039;Constants.h&#039; file is &#039;W_PI_2&#039;.  Um, I&#039;ll update the constant with something more standard for you and the others out there.  Thanks!</description>
		<content:encoded><![CDATA[<p>Ah, thanks for catching that.  The file includes math constants, which is named differently in my up-to-date Vector3 class.  One of the constants used here that is in the &#8216;Constants.h&#8217; file is &#8216;W_PI_2&#8242;.  Um, I&#8217;ll update the constant with something more standard for you and the others out there.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by gokhan</title>
		<link>http://leetnightshade.com/archives/424#comment-2412</link>
		<dc:creator>gokhan</dc:creator>
		<pubDate>Sun, 06 Nov 2011 20:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2412</guid>
		<description>sorry for different posts but, I also realised that there is line saying

#include &quot;../Constants.h&quot;

what does this have inside in it? It is missing.

thanks</description>
		<content:encoded><![CDATA[<p>sorry for different posts but, I also realised that there is line saying</p>
<p>#include &#8220;../Constants.h&#8221;</p>
<p>what does this have inside in it? It is missing.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by gokhan</title>
		<link>http://leetnightshade.com/archives/424#comment-2411</link>
		<dc:creator>gokhan</dc:creator>
		<pubDate>Sun, 06 Nov 2011 20:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2411</guid>
		<description>there is a problem at Vector3.cpp: 
line 3 empty include
line 8 std::numeric_limits</description>
		<content:encoded><![CDATA[<p>there is a problem at Vector3.cpp:<br />
line 3 empty include<br />
line 8 std::numeric_limits</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ Vector3 class by gokhan</title>
		<link>http://leetnightshade.com/archives/424#comment-2410</link>
		<dc:creator>gokhan</dc:creator>
		<pubDate>Sun, 06 Nov 2011 20:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://leetnightshade.com/?p=424#comment-2410</guid>
		<description>Thank you for this great share!</description>
		<content:encoded><![CDATA[<p>Thank you for this great share!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

