I am new to programming and I was reading a code from the internet.
I came across this function, I could not understand what does it do.
If i = 7 and bits is 255
#define BIT_IS_SET(i, bits) (1 << i & bits)
Can you please explain this code ?
and it’s used again here
if (BIT_IS_SET(i, bits))