XXianyu Sheng·Jan 28计算机:位运算介绍其实位运算(Bitwise Operation)的本质就是数字逻辑电路(与门、或门、非门、异或门)在代码层面的直接应用。 相比于加减乘除这些“宏观”运算,位运算是直接指挥 CPU 的 ALU(算术逻辑单元)去拨弄内存里的开关,所以它通常是最快的。 我把常见的位运算操作符比作你物理实验箱里的工具,用大白话给你盘点一下: 一、 基础工具箱:六大金刚 1. 按位与 & (AND) —— “严苛的安检门” / 串联电路 规则:两个都是 1,结果才是 1;否则是 0。 物理直觉:串联电路。两个开关都...2 min read·xianyu-sheng.hashnode.dev
OOyindamola Abiola·Nov 27, 2025Bits, Bytes & Storage CapacityHow Computers Count What They Can Hold After understanding binary and the conversions, I got into storage and got all confused again; how do all these turn into storage? Like, when someone says "this file is 2MB" or "you have 8GB of RAM," what does t...6 min read·oyindamolaabiola.hashnode.dev
DDivyansh Sharma·Sep 5, 2025Why Your "1TB" Laptop Shows Only 931GB: MiB vs MB ExplainedDecimal Byte vs Binary Byte (iB Units)2 min read·divyanshblogs.hashnode.dev
DDivyansh Sharma·Aug 26, 2025In real life swapping - XOR Trick vs Temp variable?Comparing the XOR swap trick to using a temporary variable for swapping: readability, undefined behavior, and optimization considerations explained2 min read·divyanshblogs.hashnode.dev
NNitin Saini·Jul 17, 2025Inside the Machine: Deconstructing Addition at the Binary LevelEver wondered how your code runs? This article breaks down raw machine code, showing a sum calculation, then reveals the full journey from writing C++ to ..7 min read·nitin-saini.hashnode.dev
MMohit Bhutani·May 24, 2025Bits, Bytes, Bhutani Epi 1 - Null GamesStarting this fun lil’ series: Bits, Bytes & Bhutani ! A weekly dose of data, drama & dry humor from my 12 year ride in analytics and a bit in governance. Doesn’t matter if it’s Monday blues or Thursday chaos — the goal is simple:Give you a smile...1 min read·mohitbhutani09.hashnode.dev
SSumaiya Akter Ria·Jan 12, 2025CS50 Week 0: Part 1Intro to binary, bits, bytes, ASCII, algorithms, and pseudocode using simple explanations and analogies. Ideal for CS50 beginners5 min read·cs50blogs.hashnode.dev
AAtanu Sarkar·Jan 8, 2024What about that point? Just let it float, duhIEEE standard for floats [Number System 3]4 min read·disciple.hashnode.dev
DDhawal Pandya·Jun 18, 2023Understanding the 'byte' Type in GoThink Different...2 min read·dhawalpandya01.hashnode.dev