The main check function code is mostly:
// Compare masked fingerprint to masked sieve, for all masks of the screen.
for (auto mask = zero; mask <= selector; ++mask)
if (bit_and(print, matrix[selector][mask]) ==
bit_and(sieve, matrix[selector][mask]))
return true;