return uint16 z in uint16 x call uint16_topbit_mask