Top "Bitwise-operators" questions

Operators which are used to perform manipulation at bit-level.

How to turn off some bits while ignoring others using only bitwise operators

I've searched for this, but my results were unsatisfactory, probably because of how hard it is to word. I have …

bit-manipulation bitwise-operators
Why were bitwise operations slightly faster than addition/subtraction operations on older microprocessors?

I came across this excerpt today: On most older microprocessors, bitwise operations are slightly faster than addition and subtraction operations …

c bit-manipulation bitwise-operators cpu-architecture digital-logic
SQL Server Bitwise Processing like C# Enum Flags

How can one use in SQL Server the processing of the Flags such as on enums in C#? For example, …

sql sql-server bitwise-operators
How to combine Intent flags in Kotlin

I want to combine two intent flags as we do bellow in android Intent intent = new Intent(this, MapsActivity.class); …

java android android-intent kotlin bitwise-operators
Using & (bitwise AND operator) in Angular ng-if expressions

I can't get the & operator to work in an Angular ng-if expression (to use with some bit flags). Suppose …

javascript angularjs syntax bitwise-operators and-operator
Equivalent of Java triple shift operator (>>>) in C#?

What is the equivalent (in C#) of Java's >>> operator? (Just to clarify, I'm not referring to the &…

c# java bitwise-operators
Are 'addition' and 'bitwise or' the same in this case?

Say I have four 32-bit numbers, defined so that their bits don't overlap, i.e. unsigned long int num0 = 0xFF000000; …

c++ c math bitwise-operators addition
How does the `test` instruction work?

If we have: test dword ptr [eax], 2000h je label1: Is there any value other than 0 in dword ptr [eax] …

assembly x86 bit-manipulation bitwise-operators instructions
bitwise operations on vector<bool>

what's the best way to perform bitwise operations on vector<bool>? as i understand, vector<bool> …

c++ bitwise-operators bitvector
How do I use Java's bitwise operators in Kotlin?

Java has binary-or | and binary-and & operators: int a = 5 | 10; int b = 5 & 10; They do not seem to work in Kotlin: …

java kotlin bitwise-operators bitwise-and bitwise-or