#define bit_is_clear(sfr,bit) \
	(!(_SFR_BYTE(sfr) & _BV(bit))) 
#include <avr/io.h>

Test whether bit bit in IO register sfr is clear. This will return non-zero if the bit is clear, and a 0 if the bit is set.