{"id":139,"date":"2011-10-05T14:50:39","date_gmt":"2011-10-05T14:50:39","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=139"},"modified":"2014-02-21T17:16:10","modified_gmt":"2014-02-21T17:16:10","slug":"c-bit-operationen","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=139","title":{"rendered":"C Bit-Operationen"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n &amp;    AND           0100 1110 &amp;\r\n                    1110 0111\r\n                    ---------\r\n                    0100 0110\r\n\r\n |    OR            0100 1110 |\r\n                    1110 0111\r\n                    ---------\r\n                    1110 1111\r\n\r\n ^    XOR           0100 1110 ^\r\n                    1110 0111\r\n                    ---------\r\n                    1010 1001\r\n\r\n ~    NOT           0100 1110 ~\r\n                    ---------\r\n                    1011 0001\r\n\r\n &lt;&lt;   Left shift    0100 1110 &lt;&lt; 3\r\n                    0111 0000\r\n\r\n &gt;&gt;   Right shift   0100 1110 &gt;&gt; 3\r\n                    0000 1001\r\n\r\n<\/pre>\n<p><a href=\"http:\/\/www.cprogramming.com\/tutorial\/bitwise_operators.html\">Bitwise Operators in C and C++: A Tutorial<\/a><br \/>\n<a href=\"http:\/\/en.wikipedia.org\/wiki\/Bitwise_operations_in_C\">Bitwise operations in C<\/a><br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/47981\/how-do-you-set-clear-and-toggle-a-single-bit-in-c\" target=\"_blank\">StackOverflow: How do you set, clear and toggle a single bit in C?<\/a><br \/>\n<a href=\"http:\/\/www.mikrocontroller.net\/articles\/AVR-GCC-Tutorial#Ver.C3.A4ndern_von_Registerinhalten\" target=\"_blank\">mikrocontroller.net: Ver\u00e4ndern von Registerinhalten<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&amp; AND 0100 1110 &amp; 1110 0111 &#8212;&#8212;&#8212; 0100 0110 | OR 0100 1110 | 1110 0111 &#8212;&#8212;&#8212; 1110 1111 ^ XOR 0100 1110 ^ 1110 0111 &#8212;&#8212;&#8212; 1010 1001 ~ NOT 0100 1110 ~ &#8212;&#8212;&#8212; 1011 0001 &lt;&lt; Left shift 0100 1110 &lt;&lt; 3 0111 0000 &gt;&gt; Right shift 0100 1110 &gt;&gt; 3 0000 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-embedded"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":5,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":1971,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions\/1971"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}