return uint16 z in uint16 x in uint16 y call uint16_smaller_mask