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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/11/02 22:04
Read: times


 
#34284 - RE: Checking one bit, in a byte Fast
Hi Spencer,

#define BIT3_MASK 0x08

if (test_byte & BIT3_MASK)
...

You can always try various ways, and look at the generated code to see what is the fastest for your particular compiler.

Dennis

List of 13 messages in thread
TopicAuthorDate
Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      
Checking 1 bit in a byte Faster than Dan            01/01/70 00:00      
RE: Checking 1 bit in a byte Faster than Dan            01/01/70 00:00      
RE: assembler faster than C            01/01/70 00:00      
RE: Checking 1 bit in a byte Faster than Dan            01/01/70 00:00      
RE: Checking 1 bit in a byte ... Erik            01/01/70 00:00      
RE: Checking one bit, in a byte Fast            01/01/70 00:00      

Back to Subject List