private int getShiftAmount(int hashWindowSize) {
        int shiftAmount = 1;
        int i = 32;

        while (i > 0 && hashWindowSize % i != 0) {
            shiftAmount *= 2;
            i /= 2;
        }

        shiftAmount = shiftAmount % 32;

        return shiftAmount;
    }
Get the shift amount value.

@param hashWindowSize The value of hash window size.
@return The value of shift amount.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/chunking/RDCAnalysisChunking.java