htable: avoid branch in calculating perfect bit.