??? 03/17/05 08:50 Read: times |
#89853 - Try this: Responding to: ???'s previous message |
Here's my take on a 'C' version:
#define bin(x) ((unsigned char)(((1##x##UL%2UL) | (((1##x##UL/10UL)%2UL)<<1) | (((1##x##UL/100UL)%2UL)<<2) | (((1##x##UL/1000UL)%2UL)<<3) | (((1##x##UL/10000UL)%2UL)<<4) | (((1##x##UL/100000UL)%2UL)<<5) | (((1##x##UL/1000000UL)%2UL)<<6) | (((1##x##UL/10000000UL)%2UL)<<7)))) unsigned char f[]= { bin(00000000), bin(11111111), bin(10100101), bin(01010101) }; |