Search code examples
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
Why use 32-bit register when the data type is 64-bit?...


assemblybit-manipulationx86-64instructionsinstruction-set

Read More
Add two integers using only bitwise operators?...


c#bit-manipulation

Read More
How to find TMax without using shifts...


c++cbinarylogicbit-manipulation

Read More
What is the purpose of the unsigned right shift operator ">>>" in Java?...


javaprogramming-languagesbit-manipulation

Read More
Fast nearest power of 2 in JavaScript?...


javascriptdoublebit-manipulationieee-754

Read More
Bits counting algorithm (Brian Kernighan) in an integer time complexity...


algorithmbit-manipulation

Read More
Golang - convert [8]bool to byte...


gobit-manipulationbitwise-operatorsbit-packing

Read More
Why two NaNs with the same binary are still not equal to each other but two infs are?...


cfloating-pointbit-manipulation

Read More
What is the fastest way to calculate the number of bits needed to store a number...


c++bit-manipulationbit

Read More
How do the left shifting operator preserve sign?...


javabit-manipulationbitbit-shift

Read More
BackNext