??? 09/13/12 11:09 Read: times |
#188317 - gobbledygook Responding to: ???'s previous message |
Yagnesh Mehta said:
if my byte is bit addressable and if not, than we can use <<,>>,&,| and masking or unmasking particular bit and play with that particular bit... unecessary why should we think about all that...??????
You have a genuine question. You get genuine answers. You reply with gobbledygook. You can always code a task in several ways with the C language. Simply use valid C expressions and let the compiler do the work. It is quite possible that the optimiser creates more efficient ASM instructions than you have ever thought of. It is seldom important whether you take 10 cycles or 20 cycles to execute one line of C. If it is important, you inspect the ASM code. Try logically equivalent C statements, and compare. David. |
Topic | Author | Date |
Different variable bit merge into single variable? | 01/01/70 00:00 | |
Of course | 01/01/70 00:00 | |
its bit addressable.... | 01/01/70 00:00 | |
No | 01/01/70 00:00 | |
just want to check... | 01/01/70 00:00 | |
What was missing in the answers you have already received? | 01/01/70 00:00 | |
no defined bit order | 01/01/70 00:00 | |
Just use C expression | 01/01/70 00:00 | |
what is wrong with IE? | 01/01/70 00:00 | |
Right!!!!!!!!!! | 01/01/70 00:00 | |
gobbledygook | 01/01/70 00:00 |