binary number comparison
Posted
by EquinoX
on Stack Overflow
See other posts from Stack Overflow
or by EquinoX
Published on 2010-05-06T03:40:08Z
Indexed on
2010/05/06
3:48 UTC
Read the original article
Hit count: 139
If I have a 32 bit two's complement number and I want to know what is the easiest way to know of two numbers are equal... what would be the fastest bitwise operator to know this? I know xor'ing both numbers and check if the results are zero works well... any other one's?
how about if a number is greater than 0?? I can check the 31'st bit to see if it's greater or equal to 0..but how about bgtz?
© Stack Overflow or respective owner