
As a Developer we all want to accomplish a task in the least complexity and time. Bits are proved to be very helpful to achieve it to their operations on integer. There are several time saving methods we are going to discuss that you can adopt to boost the performance on the task.
We have covered the following bit hacks:
Compute sign of an integer
Detect if two integer have opposite signs
Swapping two integer values without third variable
Determine if an integer is a power of 2
Negate a Intege...
Published on October 18, 2020 11:14