First time here? Check out the FAQ!
answered 2017-01-23 16:38:57 -0600
If the values in the masks are all the same, whether it's 255 or 1, bitwise_and will do what you want.