fixed rtt_shift computation precedence