<?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[long 32 Bit?]]></title><description><![CDATA[<p>Hallo,<br />
sehe ich das richtig, dass long unabhängig vom Compiler, und vom System immer 32 Bit lang ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/268218/long-32-bit</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 00:14:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/268218.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Jun 2010 08:18:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 08:18:14 GMT]]></title><description><![CDATA[<p>Hallo,<br />
sehe ich das richtig, dass long unabhängig vom Compiler, und vom System immer 32 Bit lang ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907595</guid><dc:creator><![CDATA[long]]></dc:creator><pubDate>Sun, 06 Jun 2010 08:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 08:40:31 GMT]]></title><description><![CDATA[<p>long schrieb:</p>
<blockquote>
<p>sehe ich das richtig, dass long unabhängig vom Compiler, und vom System immer 32 Bit lang ist?</p>
</blockquote>
<p>Nein. Aber unter einem 32-Bit-System ist hat <code>int</code> 32 Bits, und da der Typ <code>long</code> mindestens so gross sein muss wie <code>int</code> , besitzt er mindestens 32 Bits.</p>
<p>C++-Standard, §3.9.1/2 schrieb:</p>
<blockquote>
<p>There are four signed integer types: “signed char”, “short int”, “int”, and “long int.” In this list, each type provides at least as much storage as those preceding it in the list. Plain ints have the natural size suggested by the architecture of the execution environment ; the other signed integer types are provided to meet special needs.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1907603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907603</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 06 Jun 2010 08:40:31 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 08:56:24 GMT]]></title><description><![CDATA[<p>Der Typ long ist mindestens 32 Bit lang auf jedem System, ist häufig aber länger. Das geht aus den Standard-Mindestanforderungen an die Konstanten in der climits hervor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907608</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 06 Jun 2010 08:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 09:04:17 GMT]]></title><description><![CDATA[<p>Auf manchen DSPs (Texas Instruments C64x, Analog Devices Blackfin) ist <strong>long</strong> 5 byte groß, also 40 Bit, um die Ergebnisse der Multiply-Accumulate Befehle zu speichern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907614</guid><dc:creator><![CDATA[abc.w]]></dc:creator><pubDate>Sun, 06 Jun 2010 09:04:17 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 09:21:09 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Das geht aus den Standard-Mindestanforderungen an die Konstanten in der climits hervor.</p>
</blockquote>
<p>wo im standard werden an die konstanten mindestanforderungen (abseits der größenreihenfolge) gestellt?</p>
<p>ru,<br />
cirion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907618</guid><dc:creator><![CDATA[cirion]]></dc:creator><pubDate>Sun, 06 Jun 2010 09:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 09:39:16 GMT]]></title><description><![CDATA[<p>cirion schrieb:</p>
<blockquote>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Das geht aus den Standard-Mindestanforderungen an die Konstanten in der climits hervor.</p>
</blockquote>
<p>wo im standard werden an die konstanten mindestanforderungen (abseits der größenreihenfolge) gestellt?</p>
<p>ru,<br />
cirion</p>
</blockquote>
<p>Ja, das ist reichlich indirekt, daher schwer zu finden: In der Beschreibung der climits steht, dass auch alle Makros aus dem limits.h Header gemäß dem C89-Standard übernommen werden. Und dieser wiederum legt eine Mindestgröße für LONG_MAX und LONG_MIN fest. Und daraus geht dann die Mindestgröße des Long-Datentyps hervor.</p>
<p>Ja, das hätte man sicherlich geschickter formulieren können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907626</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 06 Jun 2010 09:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 09:49:52 GMT]]></title><description><![CDATA[<p><a href="http://jk-technology.com/c/inttypes.html" rel="nofollow">http://jk-technology.com/c/inttypes.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907633</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Sun, 06 Jun 2010 09:49:52 GMT</pubDate></item><item><title><![CDATA[Reply to long 32 Bit? on Sun, 06 Jun 2010 10:30:49 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ja, das ist reichlich indirekt, daher schwer zu finden: In der Beschreibung der climits steht, dass auch alle Makros aus dem limits.h Header gemäß dem C89-Standard übernommen werden.</p>
</blockquote>
<p>danke für die info. macht doch sinn, das vermeintlich unwichtige &quot;kleingedruckte&quot; nicht zu überlesen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>ru,<br />
cirion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1907646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1907646</guid><dc:creator><![CDATA[cirion]]></dc:creator><pubDate>Sun, 06 Jun 2010 10:30:49 GMT</pubDate></item></channel></rss>