EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Array of bits

Started by pozz May 20, 2021
On 5/23/2021 1:08 PM, Don Y wrote:

> if ( array[bit/8] & (1 << (bit % BASE_BITS)) ) {
s/8/BASE_BITS/ Does that make you happy, Jay? :> (And, no, I'm not going to make the other changes!)
> return (1); > } else { > return (0); > } > }

The 2024 Embedded Online Conference