??? 08/26/12 03:18 Read: times |
#188170 - Pesrpective... Responding to: ???'s previous message |
Per Westermark said:
~0x7f is inverting all bits.
In short - going that extra route with ~ to invert the bits, you make sure that the & operation will handle whatever number of bits that the register happens to be wide. Never thought in those lines. Thanks for the insight, Per. Cheers Raghu |
Topic | Author | Date |
A simple doubt in C | 01/01/70 00:00 | |
Clears 7 low bits but protects unknown # of high bits | 01/01/70 00:00 | |
Pesrpective... | 01/01/70 00:00 | |
Setting & clearing bits | 01/01/70 00:00 | |
Concept is very clear now... | 01/01/70 00:00 | |
Practical C Programming | 01/01/70 00:00 |