internal int getArrayIndex(ModelPPM Model, SharpCompress.Compressor.PPMd.H.State rs) { PPMContext context = this.getTempPPMContext(Model.SubAlloc.Heap); context.Address = this.getSuffix(); int num = 0; num += Model.PrevSuccess; num += Model.getNS2BSIndx()[context.NumStats - 1]; num += Model.HiBitsFlag + (2 * Model.getHB2Flag()[rs.Symbol]); return(num + (Utility.URShift(Model.RunLength, 0x1a) & 0x20)); }
internal int getArrayIndex(ModelPPM Model, State rs) { PPMContext tempSuffix = getTempPPMContext(Model.SubAlloc.Heap); tempSuffix.Address = getSuffix(); int ret = 0; ret += Model.PrevSuccess; ret += Model.getNS2BSIndx()[tempSuffix.NumStats - 1]; ret += Model.HiBitsFlag + 2 * Model.getHB2Flag()[rs.Symbol]; ret += ((Utility.URShift(Model.RunLength, 26)) & 0x20); return(ret); }
internal int getArrayIndex(ModelPPM Model, State rs) { PPMContext tempSuffix = getTempPPMContext(Model.SubAlloc.Heap); tempSuffix.Address = getSuffix(); int ret = 0; ret += Model.PrevSuccess; ret += Model.getNS2BSIndx()[tempSuffix.NumStats - 1]; ret += Model.HiBitsFlag + 2 * Model.getHB2Flag()[rs.Symbol]; ret += ((Utility.URShift(Model.RunLength, 26)) & 0x20); return ret; }
internal int getArrayIndex(ModelPPM Model, SharpCompress.Compressor.PPMd.H.State rs) { PPMContext context = this.getTempPPMContext(Model.SubAlloc.Heap); context.Address = this.getSuffix(); int num = 0; num += Model.PrevSuccess; num += Model.getNS2BSIndx()[context.NumStats - 1]; num += Model.HiBitsFlag + (2 * Model.getHB2Flag()[rs.Symbol]); return (num + (Utility.URShift(Model.RunLength, 0x1a) & 0x20)); }