??? 02/27/04 11:12 Read: times |
#65611 - RE: Binary constant macros Responding to: ???'s previous message |
Sorry, but I get lot of errors on your macro on Borland C++ and also on Keil C51.
I use this macro and it works: <pre> #define B(x) ( x % 2 | x / 10 % 2 * 2 | x / 100 % 2 * 4 | x / 1000 % 2 * 8 | x / 10000 % 2 * 16 | x / 100000 % 2 * 32 | x / 1000000 % 2 * 64 | x / 10000000 % 2 * 128 ) Peter |
Topic | Author | Date |
Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros![]() | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 | |
RE: Binary constant macros | 01/01/70 00:00 |