<?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[Bitzugriff auf eine long]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich muss eine Abfrage programmieren um zu überprüfen ob bei einer INT32 mit Inhalt<br />
0xB096 an der Stelle 10 das Bit gesetzt ist oder nicht.</p>
<p>Kann mir jemand da weiterhelfen?</p>
<p>Gruss<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180431/bitzugriff-auf-eine-long</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 19:26:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180431.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 May 2007 15:08:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitzugriff auf eine long on Wed, 02 May 2007 15:08:20 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich muss eine Abfrage programmieren um zu überprüfen ob bei einer INT32 mit Inhalt<br />
0xB096 an der Stelle 10 das Bit gesetzt ist oder nicht.</p>
<p>Kann mir jemand da weiterhelfen?</p>
<p>Gruss<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277648</guid><dc:creator><![CDATA[traceman]]></dc:creator><pubDate>Wed, 02 May 2007 15:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to Bitzugriff auf eine long on Wed, 02 May 2007 15:11:20 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int a = 0xb096;
if (a &amp; (1 &lt;&lt; 10)) bla
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1277654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277654</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Wed, 02 May 2007 15:11:20 GMT</pubDate></item><item><title><![CDATA[Reply to Bitzugriff auf eine long on Wed, 02 May 2007 15:17:51 GMT]]></title><description><![CDATA[<p>Danke vielmals, das hat mir schon mal weitergeholfen ich bin auf dem Gebiet absoluter Neuling,</p>
<p>weisst du auch wie man ein Bit an der Stelle 10 setzt, rücksetzt, löscht<br />
Viele Fragen aufeinmal <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1277665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277665</guid><dc:creator><![CDATA[traceman]]></dc:creator><pubDate>Wed, 02 May 2007 15:17:51 GMT</pubDate></item><item><title><![CDATA[Reply to Bitzugriff auf eine long on Wed, 02 May 2007 16:16:58 GMT]]></title><description><![CDATA[<p>Naja, es gibt ja noch mehr Bitoperationen.</p>
<p>Das war jetzt ein Binäres Und. Das heißt, es wird für jede Stelle das Boolesche Und der Stelle in den beiden Operanden gebildet.</p>
<p>Die anderen Operationen sind ^ (Exklusives Oder) (braucht man aber für einfache Sachen nicht) und | (Oder). Nun musst du dir nur noch eine Maske dafür bauen:<br />
Wenn du zB das 10. Bit setzen willst heißt das, das die entsprechende boolesche Operation an einer zusätzlichen Stelle, nämlich der 10., zu 1 auswerten soll.<br />
=&gt; a | (1 &lt;&lt; 10)</p>
<p>Das Rücksetzen kannst du dadurch erreichen, dass du analog zu vorigem forderst, dass es an einer bestimmten Stelle auf jeden Fall zu 0 auswertet.<br />
=&gt; a &amp; ~(1 &lt;&lt; 10)</p>
<p>~ bedeutet Negation, also kippen aller Bits.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277705</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Wed, 02 May 2007 16:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Bitzugriff auf eine long on Thu, 03 May 2007 06:19:06 GMT]]></title><description><![CDATA[<p>Jo vielen Dank! Ich denke ich komm damit jetzt schon ganz gut klar</p>
<p>Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1277929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1277929</guid><dc:creator><![CDATA[traceman]]></dc:creator><pubDate>Thu, 03 May 2007 06:19:06 GMT</pubDate></item></channel></rss>