Searched refs:mid (Results 1 – 5 of 5) sorted by relevance
207 int hi, lo, mid; in dvmPointerSetHas() local209 lo = mid = 0; in dvmPointerSetHas()214 mid = (lo + hi) / 2; in dvmPointerSetHas()215 const void* listVal = pSet->list[mid]; in dvmPointerSetHas()218 lo = mid + 1; in dvmPointerSetHas()220 hi = mid - 1; in dvmPointerSetHas()223 *pIndex = mid; in dvmPointerSetHas()229 *pIndex = mid; in dvmPointerSetHas()
20 String mid= (String)values.elementAt((left + right) / 2); in sortStrings() local22 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings()24 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings()
834 int mid = (lo + hi) >> 1; in dvmInterpHandleSparseSwitch() local836 s4 foundVal = s4FromSwitchData(&keys[mid]); in dvmInterpHandleSparseSwitch()838 hi = mid - 1; in dvmInterpHandleSparseSwitch()840 lo = mid + 1; in dvmInterpHandleSparseSwitch()843 testVal, mid, s4FromSwitchData(&entries[mid])); in dvmInterpHandleSparseSwitch()844 return s4FromSwitchData(&entries[mid]); in dvmInterpHandleSparseSwitch()
940 int hi, lo, mid; in dvmRegisterMapGetLine() local946 mid = (hi + lo) / 2; in dvmRegisterMapGetLine()947 data = pMap->data + lineWidth * mid; in dvmRegisterMapGetLine()954 lo = mid + 1; in dvmRegisterMapGetLine()956 hi = mid - 1; in dvmRegisterMapGetLine()
1168 int hi, lo, mid; in lookupMethod() local1187 mid = (hi + lo) / 2; in lookupMethod()1189 id = pKeys->methods[mid].methodId; in lookupMethod()1192 pKeys->methodCache[hashedId] = mid; in lookupMethod()1193 return &pKeys->methods[mid]; in lookupMethod()1195 lo = mid + 1; in lookupMethod()1197 hi = mid - 1; in lookupMethod()