Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in bit-manipulation

Have you ever had to use bit shifting in real projects? [closed]

Is there an elegant and fast way to test for the 1-bits in an integer to be in a contiguous region?

c++ c bit-manipulation

Why if (n & -n) == n then n is a power of 2?

java logic bit-manipulation

Saturating subtract/add for unsigned bytes

Manipulate alpha bytes of Java/Android color int

C/C++: Force Bit Field Order and Alignment

Precedence and bitmask operations

How can I multiply and divide using only bit shifting and adding?

What's the simplest way to test whether a number is a power of 2 in C++?

What is CHAR_BIT?

c bit-manipulation

Bitwise operation and usage

Best practices for circular shift (rotate) operations in C++

How do I write a maintainable, fast, compile-time bit-mask in C++?

c++ c++11 bit-manipulation

C/C++ check if one bit is set in, i.e. int variable

c++ c bit-manipulation

How do I get bit-by-bit data from an integer value in C?

c bit-manipulation

Should I use #define, enum or const?

In C/C++ what's the simplest way to reverse the order of bits in a byte?

c++ c bit-manipulation

Position of least significant bit that is set

Why does this random value have a 25/75 distribution instead of 50/50?

What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?