can anyone tell me if there is a way to apply bitwise operations, like & ^ | ~ << >> to an array of unsigned char as one contiguous block of bits?
ie. say i have
unsigned char value[5]
unsigned char mask[5]
is doing something like (value[] &= mask[]) reliable or well defined?
currently im implementing it as
for( i = 0 to 5 ) { value[i] &= mask[i] }
which isnt a problem, however if thats a loop i dont need, then it would be nice to drop it
moreso my functions for << and >> are pretty ugly and i know im losing the benefits of bitwise stuff with the way ive done it
thanks