code: public static int getMaxRicePartitionOrderFromBlocksize(int blocksize) {
          int maxRicePartitionOrder = 0;
          while ((blocksize & 1) == 0) {
              maxRicePartitionOrder++;
              blocksize >>= 1;
          }
          return Math.min(Constants.MAX_RICE_PARTITION_ORDER, maxRicePartitionOrder);
      }
docs: Return the maximum Rice partition order based on the block size.
  @param blocksize The block size
  @return  The maximum Rice partition order