Search code examples
How can an integer be read bit by bit?...


javaintegerbit-manipulationbit

Read More
Arithmetic shift-right integers with half rounding toward zero...


algorithmassemblybit-manipulationbit-shiftinteger-arithmetic

Read More
What's the simplest way to reverse the order of bits in a byte in C/C++?...


c++cbit-manipulation

Read More
Implementing safe shift-left...


c++cbit-manipulationbit-shiftinteger-overflow

Read More
Branchless add or subtract depending on separate sign bit...


c++cbit-manipulation

Read More
Convert 0x1234 to 0x11223344...


c++cbit-manipulation

Read More
Interleave bits efficiently...


c++algorithmmathassemblybit-manipulation

Read More
How to interleave two uint32_t values into one uint64_t?...


cbit-manipulationz-order-curve

Read More
How to efficiently de-interleave bits (inverse Morton)...


bit-manipulationz-order-curve

Read More
Bits twiddling hack: most efficient way to remove one bit every n bits?...


c++calgorithmc++11bit-manipulation

Read More
Standard C++11 code equivalent to the PEXT Haswell instruction (and likely to be optimized by compil...


c++x86bit-manipulationcompiler-optimizationbmi

Read More
What's the fastest way to divide an integer by 3?...


optimizationbit-manipulationdivision

Read More
Fastest way to strip trailing zeroes from an unsigned int...


c++performanceoptimizationbit-manipulation

Read More
What's the meaning of "shift operates on bits individually"?...


assemblybit-manipulationmipsbitwise-operatorsshift

Read More
Count 1-bits of an integer as fast as GCC's __builtin__popcount(int)...


cbit-manipulationbuilt-inpopulation-count

Read More
Fastest way to compute log₂(n) where n is of form 2ᵏ?...


c#mathbit-manipulationlogarithm

Read More
What's the quickest way to compute log2 of an integer in C#?...


c#algorithmmathbit-manipulation

Read More
Templatized branchless int max/min function...


c++performancetemplatesbit-manipulationbranchless

Read More
Is -(uintN_t)x or unsigned inverse in other words guaranteed to work in two's complement by the ...


clanguage-lawyerbit-manipulationstandardsc99

Read More
Rounding up to next power of 2...


coptimizationbit-manipulation

Read More
Bitwise operations: online resources?...


bit-manipulation

Read More
Will bit-shift by zero bits work correctly?...


c++bit-manipulationbit-shift

Read More
Setting all bits before first '1'...


binaryintegerbit-manipulation

Read More
How to efficiently find Bitwise OR of a range of numbers...


calgorithmbit-manipulationbitwise-operatorsbitwise-or

Read More
Efficient (bit-wise) division by 24...


bit-manipulationbitbitwise-operatorsdivisioninteger-division

Read More
Multiply by 27 using only bit shifting, addition and subtraction as few times as possible...


c#bit-manipulationbit-shiftmultiplication

Read More
Swap first and last 5 bits in a 16-bit number...


cbit-manipulationrgbbit-shift

Read More
How does an arithmetic bit-shift affect a signed integer?...


cbit-manipulationbit-shift

Read More
In C, can the Arithmetic Right Shift 1>>31 result in -1?...


cbit-manipulationbit-shifttwos-complementsigned-integer

Read More
How to turn a 16-bit number in one's complement into it's 7-segment display equivalence?...


binarybit-manipulationcomputer-scienceminecraftones-complement

Read More
BackNext