unsigned i, t;
t = -i;
i &= t;
switch (i) {
case 1:
case 2:
case 4:
case 8:
.
.
.
}
Any equivalent way to do this to get the MSB?
Tom Cunningham "Good, fast, cheap -- select two."
USPS: Motorola Inc. 6501 William Cannon Dr. W. Austin, TX 78735-8598
UUCP: {ihnp4,seismo,ctvax,gatech}!ut-sally!oakhill!tomc
Phone: 512-440-2953