# Bitwise Operators

Bitwise Operators is an actively used design pattern. In digital computer programming, a bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast and simple action, directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. Read more on Wikipedia...

?Years Old |

- Bitwise Operators ranks in the top 50% of entities I track
- the Bitwise Operators wikipedia page
- I have 18 facts about Bitwise Operators. what would you like to know? email me and let me know how I can help.
- Read more about Bitwise Operators

Languages **with** Bitwise Operators include c, cpp, javascript, python, r

### Example from c:

int i = 4; /* bit pattern equivalent is binary 100 */ int j = i << 2; /* makes it binary 10000, which multiplies the original number by 4 i.e. 16 */

### Example from javascript:

var x = 5 & 1;

### Example from python:

x << y

### Example from r:

! x x & y x && y x | y x || y xor(x, y)

Last updated September 6th, 2019