[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] efficiency of assigning bits
From: |
Jamie Morken |
Subject: |
[avr-gcc-list] efficiency of assigning bits |
Date: |
Sun, 13 Mar 2005 06:42:43 -0800 |
Hi,
I am trying to turn two bits off on a port as
quickly as possible, how do these two methods
compare:
PORTD = (PORTD & ~PD1) & ~PD4;
or:
cbi(PORTD, PD1);
cbi(PORTD, PD4);
I am assuming these are equivalent. I am learning
about bit operators so I can't be sure yet! :)
cheers,
Jamie
- [avr-gcc-list] efficiency of assigning bits,
Jamie Morken <=
- Re: [avr-gcc-list] efficiency of assigning bits, E. Weddington, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, David Willmore, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, E. Weddington, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, Erik Walthinsen, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, Jesper Hansen, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, E. Weddington, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, Erik Walthinsen, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits (OT), Hugo González Monteverde, 2005/03/15
- Re: [avr-gcc-list] efficiency of assigning bits, Dave Hansen, 2005/03/14
- Re: [avr-gcc-list] efficiency of assigning bits, Christof Krueger, 2005/03/14