Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 185) sorted by relevance

12345678

/external/webkit/Source/WebCore/bridge/jni/
DJNIUtility.h67 static void callA(jobject obj, jmethodID mid, jvalue* args)
69 getJNIEnv()->CallVoidMethodA(obj, mid, args);
71 static void callV(jobject obj, jmethodID mid, va_list args)
73 getJNIEnv()->CallVoidMethodV(obj, mid, args);
78 static jobject callA(jobject obj, jmethodID mid, jvalue* args)
80 return getJNIEnv()->CallObjectMethodA(obj, mid, args);
82 static jobject callV(jobject obj, jmethodID mid, va_list args)
84 return getJNIEnv()->CallObjectMethodV(obj, mid, args);
89 static jboolean callA(jobject obj, jmethodID mid, jvalue* args)
91 return getJNIEnv()->CallBooleanMethodA(obj, mid, args);
[all …]
/external/libxml2/
Dchvalid.c169 int low, high, mid; in xmlCharInRange() local
181 mid = (low + high) / 2; in xmlCharInRange()
182 if ((unsigned short) val < sptr[mid].low) { in xmlCharInRange()
183 high = mid - 1; in xmlCharInRange()
185 if ((unsigned short) val > sptr[mid].high) { in xmlCharInRange()
186 low = mid + 1; in xmlCharInRange()
200 mid = (low + high) / 2; in xmlCharInRange()
201 if (val < lptr[mid].low) { in xmlCharInRange()
202 high = mid - 1; in xmlCharInRange()
204 if (val > lptr[mid].high) { in xmlCharInRange()
[all …]
/external/skia/include/core/
DSkTSearch.h29 int mid = (hi + lo) >> 1; in SkTSearch() local
30 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch()
33 lo = mid + 1; in SkTSearch()
35 hi = mid; in SkTSearch()
63 int mid = (hi + lo) >> 1; in SkTSearch() local
64 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch()
67 lo = mid + 1; in SkTSearch()
69 hi = mid; in SkTSearch()
97 int mid = (hi + lo) >> 1; in SkTSearch() local
98 const T* elem = *(const T**)((const char*)base + mid * elemSize); in SkTSearch()
[all …]
/external/skia/src/utils/unix/
Dkeysym2ucs.c822 int mid; in keysym2ucs() local
835 mid = (min + max) / 2; in keysym2ucs()
836 if (keysymtab[mid].keysym < keysym) in keysym2ucs()
837 min = mid + 1; in keysym2ucs()
838 else if (keysymtab[mid].keysym > keysym) in keysym2ucs()
839 max = mid - 1; in keysym2ucs()
842 return keysymtab[mid].ucs; in keysym2ucs()
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
DSDL_qsort.c199 if ((size_t)(last-first)>PIVOT_THRESHOLD*sz) mid=pivot_big(first,mid,last,sz,compare);\
201 if (compare(first,mid)<0) { \
202 if (compare(mid,last)>0) { \
203 swapper(mid,last); \
204 if (compare(first,mid)>0) swapper(first,mid);\
208 if (compare(mid,last)>0) swapper(first,last)\
210 swapper(first,mid); \
211 if (compare(mid,last)>0) swapper(mid,last);\
282 static char * pivot_big(char *first, char *mid, char *last, size_t size, in pivot_big() argument
294 { char *a=mid-d, *b=mid, *c=mid+d; in pivot_big()
[all …]
/external/e2fsprogs/resize/
Dextent.c144 int low, high, mid; in ext2fs_extent_translate() local
157 mid = (low+high)/2; in ext2fs_extent_translate()
160 mid = low; in ext2fs_extent_translate()
178 mid = low + ((int) (range * (high-low))); in ext2fs_extent_translate()
181 if ((old_loc >= extent->list[mid].old_loc) && in ext2fs_extent_translate()
182 (old_loc < extent->list[mid].old_loc + extent->list[mid].size)) in ext2fs_extent_translate()
183 return (extent->list[mid].new_loc + in ext2fs_extent_translate()
184 (old_loc - extent->list[mid].old_loc)); in ext2fs_extent_translate()
185 if (old_loc < extent->list[mid].old_loc) in ext2fs_extent_translate()
186 high = mid-1; in ext2fs_extent_translate()
[all …]
/external/e2fsprogs/e2fsck/
Ddx_dirinfo.c83 int low, high, mid; in e2fsck_get_dx_dir_info() local
95 mid = (low+high)/2; in e2fsck_get_dx_dir_info()
96 if (mid == low || mid == high) in e2fsck_get_dx_dir_info()
98 if (ino == ctx->dx_dir_info[mid].ino) in e2fsck_get_dx_dir_info()
99 return &ctx->dx_dir_info[mid]; in e2fsck_get_dx_dir_info()
100 if (ino < ctx->dx_dir_info[mid].ino) in e2fsck_get_dx_dir_info()
101 high = mid; in e2fsck_get_dx_dir_info()
103 low = mid; in e2fsck_get_dx_dir_info()
Dea_refcount.c158 int low, high, mid; in get_refcount_el() local
186 mid = (low+high)/2; in get_refcount_el()
189 mid = low; in get_refcount_el()
207 mid = low + ((int) (range * (high-low))); in get_refcount_el()
210 if (blk == refcount->list[mid].ea_blk) { in get_refcount_el()
211 refcount->cursor = mid+1; in get_refcount_el()
212 return &refcount->list[mid]; in get_refcount_el()
214 if (blk < refcount->list[mid].ea_blk) in get_refcount_el()
215 high = mid-1; in get_refcount_el()
217 low = mid+1; in get_refcount_el()
/external/skia/src/animator/
DSkGetCondensedInfo.cpp26 int mid = (hi + lo) >> 1; in _searchByName() local
27 if (strcmp(&strings[lengths[mid << 2]], target) < 0) in _searchByName()
28 lo = mid + 1; in _searchByName()
30 hi = mid; in _searchByName()
42 int mid = (hi + lo) >> 1; in _searchByType() local
43 if (gTypeIDs[mid] < match) in _searchByType()
44 lo = mid + 1; in _searchByType()
46 hi = mid; in _searchByType()
/external/skia/src/utils/
DSkParseColor.cpp407 int mid = (hi + lo) >> 1; in FindNamedColor() local
408 while ((int) gColorNames[mid] >= 0) in FindNamedColor()
409 --mid; in FindNamedColor()
411 while (gColorNames[mid] == *sixMatchPtr) { in FindNamedColor()
412 ++mid; in FindNamedColor()
414 *color = gColorNames[mid] | 0xFF000000; in FindNamedColor()
420 int midMask = gColorNames[mid] & ~0x80000000; in FindNamedColor()
422 lo = mid + 2; // skip color in FindNamedColor()
425 } else if (hi == mid) in FindNamedColor()
428 hi = mid; in FindNamedColor()
/external/freetype/src/psnames/
Dpsmodule.c400 PS_UniMap *min, *max, *mid, *result = NULL; in ps_unicodes_char_index() local
413 mid = min + ( ( max - min ) >> 1 ); in ps_unicodes_char_index()
415 if ( mid->unicode == unicode ) in ps_unicodes_char_index()
417 result = mid; in ps_unicodes_char_index()
421 base_glyph = BASE_GLYPH( mid->unicode ); in ps_unicodes_char_index()
424 result = mid; /* remember match but continue search for base glyph */ in ps_unicodes_char_index()
430 min = mid + 1; in ps_unicodes_char_index()
432 max = mid - 1; in ps_unicodes_char_index()
453 FT_UInt mid; in ps_unicodes_char_next() local
460 mid = min + ( ( max - min ) >> 1 ); in ps_unicodes_char_next()
[all …]
Dpstables.h4096 int mid = ( min + max ) >> 1; in ft_get_adobe_glyph_index() local
4097 const unsigned char* q = p + mid * 2; in ft_get_adobe_glyph_index()
4110 min = mid + 1; in ft_get_adobe_glyph_index()
4112 max = mid; in ft_get_adobe_glyph_index()
/external/quake/quake/src/QW/client/
Dr_light.c147 vec3_t mid; in RecursiveLightPoint() local
171 mid[0] = start[0] + (end[0] - start[0])*frac; in RecursiveLightPoint()
172 mid[1] = start[1] + (end[1] - start[1])*frac; in RecursiveLightPoint()
173 mid[2] = start[2] + (end[2] - start[2])*frac; in RecursiveLightPoint()
176 r = RecursiveLightPoint (node->children[side], start, mid); in RecursiveLightPoint()
193 s = DotProduct (mid, tex->vecs[0]) + tex->vecs[0][3]; in RecursiveLightPoint()
194 t = DotProduct (mid, tex->vecs[1]) + tex->vecs[1][3];; in RecursiveLightPoint()
235 return RecursiveLightPoint (node->children[!side], mid, end); in RecursiveLightPoint()
Dgl_rlight.c273 vec3_t mid; in RecursiveLightPoint() local
297 mid[0] = start[0] + (end[0] - start[0])*frac; in RecursiveLightPoint()
298 mid[1] = start[1] + (end[1] - start[1])*frac; in RecursiveLightPoint()
299 mid[2] = start[2] + (end[2] - start[2])*frac; in RecursiveLightPoint()
302 r = RecursiveLightPoint (node->children[side], start, mid); in RecursiveLightPoint()
310 VectorCopy (mid, lightspot); in RecursiveLightPoint()
321 s = DotProduct (mid, tex->vecs[0]) + tex->vecs[0][3]; in RecursiveLightPoint()
322 t = DotProduct (mid, tex->vecs[1]) + tex->vecs[1][3];; in RecursiveLightPoint()
363 return RecursiveLightPoint (node->children[!side], mid, end); in RecursiveLightPoint()
Dpmovetst.c183 vec3_t mid; in PM_RecursiveHullCheck() local
247 mid[i] = p1[i] + frac*(p2[i] - p1[i]); in PM_RecursiveHullCheck()
252 if (!PM_RecursiveHullCheck (hull, node->children[side], p1f, midf, p1, mid, trace) ) in PM_RecursiveHullCheck()
256 if (PM_HullPointContents (pm_hullmodel, mid, node->children[side]) in PM_RecursiveHullCheck()
264 if (PM_HullPointContents (hull, node->children[side^1], mid) in PM_RecursiveHullCheck()
267 return PM_RecursiveHullCheck (hull, node->children[side^1], midf, p2f, mid, p2, trace); in PM_RecursiveHullCheck()
286 while (PM_HullPointContents (hull, hull->firstclipnode, mid) in PM_RecursiveHullCheck()
293 VectorCopy (mid, trace->endpos); in PM_RecursiveHullCheck()
299 mid[i] = p1[i] + frac*(p2[i] - p1[i]); in PM_RecursiveHullCheck()
303 VectorCopy (mid, trace->endpos); in PM_RecursiveHullCheck()
/external/quake/quake/src/WinQuake/
Dr_light.cpp147 vec3_t mid; in RecursiveLightPoint() local
171 mid[0] = start[0] + (end[0] - start[0])*frac; in RecursiveLightPoint()
172 mid[1] = start[1] + (end[1] - start[1])*frac; in RecursiveLightPoint()
173 mid[2] = start[2] + (end[2] - start[2])*frac; in RecursiveLightPoint()
176 r = RecursiveLightPoint (node->children[side], start, mid); in RecursiveLightPoint()
193 s = DotProduct (mid, tex->vecs[0]) + tex->vecs[0][3]; in RecursiveLightPoint()
194 t = DotProduct (mid, tex->vecs[1]) + tex->vecs[1][3];; in RecursiveLightPoint()
235 return RecursiveLightPoint (node->children[!side], mid, end); in RecursiveLightPoint()
Dgl_rlight.cpp276 vec3_t mid; in RecursiveLightPoint() local
300 mid[0] = start[0] + (end[0] - start[0])*frac; in RecursiveLightPoint()
301 mid[1] = start[1] + (end[1] - start[1])*frac; in RecursiveLightPoint()
302 mid[2] = start[2] + (end[2] - start[2])*frac; in RecursiveLightPoint()
305 r = RecursiveLightPoint (node->children[side], start, mid); in RecursiveLightPoint()
313 VectorCopy (mid, lightspot); in RecursiveLightPoint()
324 s = (int) (DotProduct (mid, tex->vecs[0]) + tex->vecs[0][3]); in RecursiveLightPoint()
325 t = (int) (DotProduct (mid, tex->vecs[1]) + tex->vecs[1][3]); in RecursiveLightPoint()
366 return RecursiveLightPoint (node->children[!side], mid, end); in RecursiveLightPoint()
/external/eigen/Eigen/src/IterativeLinearSolvers/
DIncompleteLUT.h189 int mid; in QuickSplit() local
199 mid = first; in QuickSplit()
200 RealScalar abskey = std::abs(row(mid)); in QuickSplit()
203 ++mid; in QuickSplit()
204 swap(row(mid), row(j)); in QuickSplit()
205 swap(ind(mid), ind(j)); in QuickSplit()
209 swap(row(mid), row(first)); in QuickSplit()
210 swap(ind(mid), ind(first)); in QuickSplit()
212 if (mid > ncut) last = mid - 1; in QuickSplit()
213 else if (mid < ncut ) first = mid + 1; in QuickSplit()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dbadblocks.c164 int low, high, mid; in ext2fs_u32_list_find() local
180 mid = (low+high)/2; in ext2fs_u32_list_find()
181 if (mid == low || mid == high) in ext2fs_u32_list_find()
183 if (blk == bb->list[mid]) in ext2fs_u32_list_find()
184 return mid; in ext2fs_u32_list_find()
185 if (blk < bb->list[mid]) in ext2fs_u32_list_find()
186 high = mid; in ext2fs_u32_list_find()
188 low = mid; in ext2fs_u32_list_find()
/external/skia/src/core/
DSkStrokerPriv.cpp172 SkVector mid; in MiterJoiner() local
200 mid.set(SkScalarMul(before.fX + after.fX, radius), in MiterJoiner()
223 mid.set(after.fY - before.fY, before.fX - after.fX); in MiterJoiner()
225 mid.negate(); in MiterJoiner()
228 mid.set(before.fX + after.fX, before.fY + after.fY); in MiterJoiner()
230 mid.setLength(SkScalarDiv(radius, sinHalfAngle)); in MiterJoiner()
233 outer->setLastPt(pivot.fX + mid.fX, pivot.fY + mid.fY); in MiterJoiner()
235 outer->lineTo(pivot.fX + mid.fX, pivot.fY + mid.fY); in MiterJoiner()
/external/eigen/unsupported/Eigen/src/BVH/
DKdBVH.h192 int mid = from + 2;
193 std::nth_element(objCenters.begin() + from, objCenters.begin() + mid,
195 build(objCenters, from, mid, objBoxes, (dim + 1) % Dim);
197 boxes.push_back(boxes[idx1].merged(objBoxes[objCenters[mid].second]));
199 children.push_back(mid + (int)objects.size() - 1);
202 int mid = from + (to - from) / 2;
203 nth_element(objCenters.begin() + from, objCenters.begin() + mid,
205 build(objCenters, from, mid, objBoxes, (dim + 1) % Dim);
207 build(objCenters, mid, to, objBoxes, (dim + 1) % Dim);
/external/webkit/Source/WebCore/bridge/jni/v8/
DJavaClassJobjectV8.cpp115 bool JavaClassJobject::jsAccessAllowed(JNIEnv* env, jmethodID mid, jobject aJMethod) in jsAccessAllowed() argument
119 bool accessAllowed = env->CallBooleanMethod(aJMethod, mid, safeAnnotationClazz); in jsAccessAllowed()
131 jmethodID mid = 0; in getAnnotationMethodID() local
133 mid = env->GetMethodID(methodClass, kIsAnnotationPresent, "(Ljava/lang/Class;)Z"); in getAnnotationMethodID()
134 if (!methodClass || !mid) { in getAnnotationMethodID()
139 return mid; in getAnnotationMethodID()
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/
Dscanresults.cpp91 bssid = (*it).mid(pos); in updateResults()
93 freq = (*it).mid(pos); in updateResults()
95 signal = (*it).mid(pos); in updateResults()
97 flags = (*it).mid(pos); in updateResults()
99 ssid = (*it).mid(pos); in updateResults()
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Dscanresults.cpp87 bssid = (*it).mid(pos); in updateResults()
89 freq = (*it).mid(pos); in updateResults()
91 signal = (*it).mid(pos); in updateResults()
93 flags = (*it).mid(pos); in updateResults()
95 ssid = (*it).mid(pos); in updateResults()
/external/freetype/src/sfnt/
Dttcmap.c1090 FT_UInt max, min, mid, num_segs; in tt_cmap4_char_map_binary() local
1105 mid = num_segs; in tt_cmap4_char_map_binary()
1117 mid = ( min + max ) >> 1; in tt_cmap4_char_map_binary()
1118 p = cmap->data + 14 + mid * 2; in tt_cmap4_char_map_binary()
1124 max = mid; in tt_cmap4_char_map_binary()
1126 min = mid + 1; in tt_cmap4_char_map_binary()
1136 if ( mid >= num_segs - 1 && in tt_cmap4_char_map_binary()
1157 max = mid; in tt_cmap4_char_map_binary()
1160 mid = max + 1; in tt_cmap4_char_map_binary()
1188 mid = i - 1; in tt_cmap4_char_map_binary()
[all …]

12345678