<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Schleife vereinfachen]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>ich hätte mal eine Neulings Frage bezüglich Schleifen. Wenn man davon spricht eine Schleife zu entrollen. Was meint man damit?<br />
Hier ein Beispiel was ich darunter verstanden habe.</p>
<p>Die ursprüngliche FOR-Schleife:</p>
<pre><code class="language-cpp">for (int i = 0; i &lt; 3; i++)
{
     switch (i)
     {
          case 0:
          DoThing1();
          break;
          case 1:
          DoThing2();
          break;
          case 2:
          DoThing3();
          break;
     }
}
</code></pre>
<p>Schleife entrollt?</p>
<pre><code class="language-cpp">DoThing1();
DoThing2();
DoThing3();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/303617/schleife-vereinfachen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 07:23:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/303617.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 May 2012 14:25:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 17:45:46 GMT]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>ich hätte mal eine Neulings Frage bezüglich Schleifen. Wenn man davon spricht eine Schleife zu entrollen. Was meint man damit?<br />
Hier ein Beispiel was ich darunter verstanden habe.</p>
<p>Die ursprüngliche FOR-Schleife:</p>
<pre><code class="language-cpp">for (int i = 0; i &lt; 3; i++)
{
     switch (i)
     {
          case 0:
          DoThing1();
          break;
          case 1:
          DoThing2();
          break;
          case 2:
          DoThing3();
          break;
     }
}
</code></pre>
<p>Schleife entrollt?</p>
<pre><code class="language-cpp">DoThing1();
DoThing2();
DoThing3();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2212838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212838</guid><dc:creator><![CDATA[bres]]></dc:creator><pubDate>Fri, 18 May 2012 17:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 14:40:59 GMT]]></title><description><![CDATA[<p>auf wiki ist es gut erklärt : <a href="http://de.wikipedia.org/wiki/Loop_unrolling" rel="nofollow">http://de.wikipedia.org/wiki/Loop_unrolling</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212845</guid><dc:creator><![CDATA[boost]]></dc:creator><pubDate>Fri, 18 May 2012 14:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 14:45:02 GMT]]></title><description><![CDATA[<p>Vielen Dank für den Link! Also ist das genau das, was ich gemacht bzw. verstanden hab.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212847</guid><dc:creator><![CDATA[bres]]></dc:creator><pubDate>Fri, 18 May 2012 14:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 14:50:22 GMT]]></title><description><![CDATA[<p>Ja, auch wenn ich nicht weiß was das mit dem switch soll <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212849</guid><dc:creator><![CDATA[boost]]></dc:creator><pubDate>Fri, 18 May 2012 14:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 14:52:47 GMT]]></title><description><![CDATA[<p>Hier ist's noch besser erklärt:<br />
<a href="http://en.wikipedia.org/wiki/Loop_unwinding" rel="nofollow">http://en.wikipedia.org/wiki/Loop_unwinding</a></p>
<p>Insbesondere muss eine Schleife nicht unbedingt vollständig entrollt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212852</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Fri, 18 May 2012 14:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 14:57:34 GMT]]></title><description><![CDATA[<p>Ja ich weiß auch nicht was das mit dem switch sein soll <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Das ist ein Ausschnitt aus einem Code den ich bekommen hab zum verbessern ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212855</guid><dc:creator><![CDATA[bres]]></dc:creator><pubDate>Fri, 18 May 2012 14:57:34 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 15:03:21 GMT]]></title><description><![CDATA[<p>Ja ok gut zu wissen mit dem nicht vollständig ausrollen! Aber ich würde sagen in meinem Beispiel macht es schon Sinn diese komplett zu entrollen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212861</guid><dc:creator><![CDATA[bres]]></dc:creator><pubDate>Fri, 18 May 2012 15:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 15:18:36 GMT]]></title><description><![CDATA[<p>Händisches Loop Unrolling macht so gut wie überhaupt nie Sinn. Der Compiler ist in 99,999% der Fälle schlauer als du.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212865</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Fri, 18 May 2012 15:18:36 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 16:00:01 GMT]]></title><description><![CDATA[<p>Ja ok des bestimmt, aber ich glaub hier geht es meinem Prof eher darum den Code verständlicher zu machen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212884</guid><dc:creator><![CDATA[bres]]></dc:creator><pubDate>Fri, 18 May 2012 16:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife vereinfachen on Fri, 18 May 2012 23:39:20 GMT]]></title><description><![CDATA[<p>Loop Unrolling macht den Code nur unlesbar. Dein Prof ist doof.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2212984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2212984</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Fri, 18 May 2012 23:39:20 GMT</pubDate></item></channel></rss>