How are these equivalent?
Let newhmr->sz = 6, TARGET_PAGE_SIZE = 3.
 6 % 3 != 0   ==> False
 6 & 2          ==> True