Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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


List of 9 messages in thread
TopicAuthorDate
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      

Back to Subject List