Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If the values in the masks are all the same, whether it's 255 or 1, bitwise_and will do what you want.