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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
David Prentice
09/13/12 05:09
Read: 682 times
Wormshill
England


 
#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.

List of 11 messages in thread
TopicAuthorDate
Different variable bit merge into single variable?      Yagnesh Mehta      09/10/12 04:48      
   Of course      Per Westermark      09/10/12 05:02      
      its bit addressable....      Yagnesh Mehta      09/10/12 05:38      
         No      Per Westermark      09/10/12 06:39      
            just want to check...      Yagnesh Mehta      09/10/12 22:16      
               What was missing in the answers you have already received?      Per Westermark      09/11/12 00:21      
                  no defined bit order      Maarten Brock      09/11/12 03:26      
                     Just use C expression      David Prentice      09/11/12 05:39      
         what is wrong with IE?      Erik Malund      09/10/12 07:01      
            Right!!!!!!!!!!      Yagnesh Mehta      09/13/12 00:29      
               gobbledygook      David Prentice      09/13/12 05:09      

Back to Subject List