Top "Bitwise-operators" questions

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

How do I use the bitwise operator XOR in Lua?

How can I implement bitwise operators in Lua language? Specifically, I need a XOR operator/method.

lua bitwise-operators logical-operators
Boolean operators vs Bitwise operators

I am confused as to when I should use Boolean vs bitwise operators and vs & or vs | Could someone …

python bitwise-operators boolean-operations
C# bitwise rotate left and rotate right

What is the C# equivalent (.NET 2.0) of _rotl and _rotr from C++?

c# bitwise-operators
How to create NS_OPTIONS-style bitmask enumerations in Swift?

In Apple's documentation about interacting with C APIs, they describe the way NS_ENUM-marked C-style enumerations are imported as Swift …

ios bitwise-operators swift
Is there any difference between && and & with bool(s)?

In C++, is there any difference between doing && (logical) and & (bitwise) between bool(s)? bool val1 = foo(); …

c++ bitwise-operators boolean logical-operators language-lawyer
practical applications of bitwise operations

What have you used bitwise operations for? why are they so handy? can someone please recommend a VERY simple tutorial?

c# bitwise-operators
Explanation of Bitwise NOT Operator

Why is it that the bitwise NOT operator (~ in most languages) converts the following values like so: -2 -> 1 …

bitwise-operators
javascript trunc() function

I want to truncate a number in javascript, that means to cut away the decimal part: trunc ( 2.6 ) == 2 trunc (-2.6 ) == -2 …

javascript bit-manipulation bitwise-operators
How to get the logical right binary shift in python

As revealed by the title, in JavaScript there is a specific operator >>>. For example, in JavaScript we …

python bitwise-operators
Where would I use a bitwise operator in JavaScript?

I've read 'what are bitwise operators?', so I know what bitwise operators are but I'm still not clear on …

javascript bitwise-operators