Lines Matching refs:MiddleIndex
780 unsigned MiddleIndex = (GreaterIndex-LessIndex)/2+LessIndex; in getFileIDLocal() local
781 unsigned MidOffset = getLocalSLocEntry(MiddleIndex, &Invalid).getOffset(); in getFileIDLocal()
790 GreaterIndex = MiddleIndex; in getFileIDLocal()
797 if (isOffsetInFileID(FileID::get(MiddleIndex), SLocOffset)) { in getFileIDLocal()
798 FileID Res = FileID::get(MiddleIndex); in getFileIDLocal()
802 if (!LocalSLocEntryTable[MiddleIndex].isExpansion()) in getFileIDLocal()
809 LessIndex = MiddleIndex; in getFileIDLocal()
857 unsigned MiddleIndex = (LessIndex - GreaterIndex) / 2 + GreaterIndex; in getFileIDLoaded() local
858 const SrcMgr::SLocEntry &E = getLoadedSLocEntry(MiddleIndex); in getFileIDLoaded()
866 if (GreaterIndex == MiddleIndex) { in getFileIDLoaded()
870 GreaterIndex = MiddleIndex; in getFileIDLoaded()
874 if (isOffsetInFileID(FileID::get(-int(MiddleIndex) - 2), SLocOffset)) { in getFileIDLoaded()
875 FileID Res = FileID::get(-int(MiddleIndex) - 2); in getFileIDLoaded()
883 if (LessIndex == MiddleIndex) { in getFileIDLoaded()
887 LessIndex = MiddleIndex; in getFileIDLoaded()