Fixed mod function specialization #281 Fixed bitscan detection