[[
wikihub
]]
Search
⌘K
Explore
People
For Agents
Sign in
Explore
People
For Agents
Sign in
@jemoka / Jemoka Knowledge Base / raw/concept/kbhbitwise_operations.md
Suggest edit
Cancel
Submit suggestion
Title
Name
Note
--- title: "bitwise operations" source: https://www.jemoka.com/posts/kbhbitwise_operations/ --- & | ~ ^ << >> & Bitwise level AND | Bitwise level OR ~ Unary bitwise negation ^ Unary XOR << Shift the number to the left. Fill unused slots with 0. >> Shift the number to the right for signed values, we perform an arithmetic right shift: fill the unused slots with the most significant bit from before (“fill with 1s”) for unsigned values, we perform a logical right shift