Define common compressor function for rightward shifts with two Integers