<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com arduino:bitwise_operators</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-06-21T05:44:41+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitwisecompoundand?rev=1708041855&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitwisecompoundor?rev=1708041856&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitwisexornot?rev=1708041855&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>bitshift left ()</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff</link>
        <description>Description

From The Bitmath Tutorial  in The Playground

There are two bit shift operators in C++: the left shift operator &lt;&lt; and the right shift operator &gt;&gt;. These operators cause the bits in the left operand to be shifted left or right by the number of positions specified by the right operand.\

More on bitwise math may be found  here.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>Bitwise AND (&amp;), Bitwise OR (|),  Bitwise XOR (^)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff</link>
        <description>Bitwise AND (&amp;)

The bitwise operators perform their calculations at the bit level of variables. They help solve a wide range of common programming problems. Much of the material below is from an excellent tutorial on bitwise math wihch may be found  here.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitwisecompoundand?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>compound bitwise AND (&amp;=)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwisecompoundand?rev=1708041855&amp;do=diff</link>
        <description>Description

The compound bitwise AND operator (&amp;=) is often used with a variable and a constant to force particular bits in a variable to the LOW state (to 0). This is often referred to in programming guides as “clearing” or “resetting” bits.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitwisecompoundor?rev=1708041856&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:16+02:00</dc:date>
        <title>compound bitwise OR (|=)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwisecompoundor?rev=1708041856&amp;do=diff</link>
        <description>Description

The compound bitwise OR operator (|=) is often used with a variable and a constant to “set” (set to 1) particular bits in a variable.

Syntax:


x |= y;   // equivalent to x = x | y; 

Parameters

x: a char, int or long variable

y: an integer constant or char, int, or long</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitwisexornot?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>Bitwise NOT (~)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwisexornot?rev=1708041855&amp;do=diff</link>
        <description>The bitwise NOT operator in C++ is the tilde character ~. Unlike &amp; and |, the bitwise NOT operator is applied to a single operand to its right. Bitwise NOT changes each bit to its opposite: 0 becomes 1, and 1 becomes 0. For example:
  0  1    operand1
  
 ----------
  1  0   ~ operand1  int a = 103;    // binary:  0000000001100111
  int b = ~a;     // binary:  1111111110011000 = -104
You might be surprised to see a negative number like -104 as the result of this operation. This is because the hi…</description>
    </item>
</rdf:RDF>
