answered question

answers (1)

srgothard
0
Votes
BEST ANSWER  decided by votes   |  srgothard  |  April 15, 2009 10:51 PM
I don't know if I totally got it, but this question's been out here a while. What about this?

boolean bit_changed = false;
for (i=0; !bit_changed && i < grnBitCount; ++i) {
bit_changed = (this"grnBit"+redBitCount >> i & 0x1);
}
for (i=0; !bit_changed && i < ylwBitCount; ++i) {
bit_changed = (this"ylwBit"+redBitCount >> i & 0x1);
}

for (i=0; !bit_changed && i < redBitCount; ++i) {
bit_changed = (this"redBit"+redBitCount >> i & 0x1);
}

Comment
140

ask any question

Top of Page
Buy Mahalo Dollars
WITH CREDIT CARD OR PAYPAL

Please log in to use this function.