Home
last modified time | relevance | path

Searched refs:MiddleIndex (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Basic/
DSourceManager.cpp780 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()
[all …]
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp822 unsigned MiddleIndex = (GreaterIndex-LessIndex)/2+LessIndex; in getFileIDLocal() local
823 unsigned MidOffset = getLocalSLocEntry(MiddleIndex).getOffset(); in getFileIDLocal()
830 GreaterIndex = MiddleIndex; in getFileIDLocal()
835 if (MiddleIndex + 1 == LocalSLocEntryTable.size() || in getFileIDLocal()
836 SLocOffset < getLocalSLocEntry(MiddleIndex + 1).getOffset()) { in getFileIDLocal()
837 FileID Res = FileID::get(MiddleIndex); in getFileIDLocal()
846 LessIndex = MiddleIndex; in getFileIDLocal()
892 unsigned MiddleIndex = (LessIndex - GreaterIndex) / 2 + GreaterIndex; in getFileIDLoaded() local
893 const SrcMgr::SLocEntry &E = getLoadedSLocEntry(MiddleIndex); in getFileIDLoaded()
901 if (GreaterIndex == MiddleIndex) { in getFileIDLoaded()
[all …]