<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bitwise on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/bitwise/</link><description>Recent content in Bitwise on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 03 Nov 2025 01:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/bitwise/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 11: Bitwise Operations: Working at the Bit Level</title><link>https://ai-blog.noorshomelab.dev/c-programming-guide/bitwise-operations/</link><pubDate>Mon, 03 Nov 2025 01:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/c-programming-guide/bitwise-operations/</guid><description>&lt;h1 id="chapter-11-bitwise-operations-working-at-the-bit-level"&gt;Chapter 11: Bitwise Operations: Working at the Bit Level&lt;/h1&gt;
&lt;p&gt;Up until now, we&amp;rsquo;ve mostly treated data as whole numbers, characters, or floating-point values. However, at the lowest level, computers store and process all information as sequences of &lt;strong&gt;bits&lt;/strong&gt; (binary digits, 0s and 1s).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bitwise operations&lt;/strong&gt; allow you to manipulate these individual bits within integer types. This is a fundamental skill for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Low-level programming:&lt;/strong&gt; Interacting directly with hardware registers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Embedded systems:&lt;/strong&gt; Controlling peripherals, setting flags.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data compression and encryption:&lt;/strong&gt; Efficiently packing/unpacking data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Optimized algorithms:&lt;/strong&gt; Sometimes, bitwise operations can be significantly faster than arithmetic operations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Representing sets/flags:&lt;/strong&gt; Using individual bits to represent a collection of boolean states.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In this chapter, we will explore C&amp;rsquo;s bitwise operators and learn how to use them effectively.&lt;/p&gt;</description></item></channel></rss>