??? 06/10/07 17:49 Read: times |
#140513 - OK Then 38 Bytes Responding to: ???'s previous message |
UC TestFlip(UC c) { //c=c/2&85|c*2&170;c=c/4&51|c*4&204;RT c>>4|c<<4; // (47) Cooper //UC r,i=8;WH(i--){r>>=1;r|=c&128;c*=2;}RT r; // (43) Karas //UC r,i=8;WH(i--){r*=2;r|=c&1;c/=2;}RT r; // (40) Karas UC r,i=8;WH(i--){r=r*2|c&1;c/=2;}RT r; // (38) Cooper }I don't want to change the rules again for this contest, but your last tweak (where you got rid of that nasty '128') makes me wonder if (in future contests) we should also allow #defines for magic numbers like that. In the same way that we've said that all keywords cost the same, it also might make sense to say that all numbers cost the same. What do you think? -- Russ |