Thread
:
find smallest of three numbers without using comparsion operator
View Single Post
shabbir
Go4Expert Founder
10Aug2004,15:33
Hello
do something like this
a,b,c
d = a-b;
get MSB of d
if(MSB)
no is +ve and a>b and so compare a and c
else
no is -ve and a<b so compare b and c in similar fashion.
Thanks
Shabbir Bhimani