Skip to content
EntityQ879126· pop 33· linked from 313 articles

bitwise operation

Sign in to save

Also known as bitwise, bitwise arithmetic, bit arithmetic, bit manipulation, bit operation, bitwise operator

computer operation that operates on values at the level of their individual bits

Wikidata facts

Show 1 more fact
Commons category
Bitwise operations
Sources (2)

via Wikidata · CC0

~21 min read

Article

In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher-level arithmetic operations and directly supported by the processor. Most architectures provide only a few high value bitwise operations, presented as two-operand instructions where the result replaces one of the input operands.

On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their longer instruction pipelines and other architectural design choices, bitwise operations do commonly use less power because of the reduced use of resources.

Connections

Categories