Searched defs:mid (Results 1 - 25 of 256) sorted by relevance

1234567891011

/external/chromium_org/third_party/skia/src/views/unix/
H A Dkeysym2ucs.c822 int mid; local
835 mid = (min + max) / 2;
836 if (keysymtab[mid].keysym < keysym)
837 min = mid + 1;
838 else if (keysymtab[mid].keysym > keysym)
839 max = mid - 1;
842 return keysymtab[mid].ucs;
/external/chromium_org/third_party/skia/tests/
H A DPathOpsDLineTest.cpp50 SkDPoint mid = line.ptAtT(.5); local
51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
/external/skia/src/views/unix/
H A Dkeysym2ucs.c822 int mid; local
835 mid = (min + max) / 2;
836 if (keysymtab[mid].keysym < keysym)
837 min = mid + 1;
838 else if (keysymtab[mid].keysym > keysym)
839 max = mid - 1;
842 return keysymtab[mid].ucs;
/external/skia/tests/
H A DPathOpsDLineTest.cpp50 SkDPoint mid = line.ptAtT(.5); local
51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DCubicParameterization_Test.cpp31 Cubic whole, first, second, mid; local
35 quad_to_cubic(midThird, mid);
42 if (!implicit_matches(mid, first)) {
45 if (!implicit_matches(mid, second)) {
/external/compiler-rt/test/asan/TestCases/
H A Dcontiguous_container.cc14 char *mid = beg + capacity; local
20 old_mid = mid;
21 mid = beg + size;
22 __sanitizer_annotate_contiguous_container(beg, end, old_mid, mid);
28 assert(__sanitizer_verify_contiguous_container(beg, mid, end));
29 if (mid != beg)
30 assert(!__sanitizer_verify_contiguous_container(beg, mid - 1, end));
31 if (mid != end)
32 assert(!__sanitizer_verify_contiguous_container(beg, mid + 1, end));
36 __sanitizer_annotate_contiguous_container(beg, end, mid, en
[all...]
/external/lzma/CPP/7zip/Archive/Common/
H A DMultiStream.cpp17 int left = 0, mid = _streamIndex, right = Streams.Size(); local
20 CSubStreamInfo &m = Streams[mid];
22 right = mid;
24 left = mid + 1;
27 _streamIndex = mid;
30 mid = (left + right) / 2;
32 _streamIndex = mid;
/external/lzma/CPP/7zip/Common/
H A DFilePathAutoRename.cpp48 unsigned mid = (left + right) / 2; local
49 if (MakeAutoName(name, extension, mid, path))
50 left = mid + 1;
52 right = mid;
/external/skia/experimental/Intersection/
H A DCubicParameterization_Test.cpp31 Cubic whole, first, second, mid; local
35 quad_to_cubic(midThird, mid);
42 if (!implicit_matches(mid, first)) {
45 if (!implicit_matches(mid, second)) {
/external/chromium_org/third_party/freetype/src/psnames/
H A Dpstables.h4096 int mid = ( min + max ) >> 1; local
4097 const unsigned char* q = p + mid * 2;
4110 min = mid + 1;
4112 max = mid;
/external/e2fsprogs/e2fsck/
H A Ddx_dirinfo.c83 int low, high, mid; local
95 mid = (low+high)/2;
96 if (mid == low || mid == high)
98 if (ino == ctx->dx_dir_info[mid].ino)
99 return &ctx->dx_dir_info[mid];
100 if (ino < ctx->dx_dir_info[mid].ino)
101 high = mid;
103 low = mid;
/external/eigen/test/eigen2/
H A Deigen2_array.cpp87 Scalar mid = (m1.cwise().abs().minCoeff() + m1.cwise().abs().maxCoeff())/Scalar(2); local
90 m3(i,j) = ei_abs(m1(i,j))<mid ? 0 : m1(i,j);
91 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid))
94 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid))
96 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()>=MatrixType::Constant(rows,cols,mid))
99 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<mid).select(0,m1), m3);
/external/freetype/src/psnames/
H A Dpstables.h4096 int mid = ( min + max ) >> 1; local
4097 const unsigned char* q = p + mid * 2;
4110 min = mid + 1;
4112 max = mid;
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/psnames/
H A Dpstables.h4110 int mid = ( min + max ) >> 1; local
4111 const unsigned char* q = p + mid * 2;
4124 min = mid + 1;
4126 max = mid;
/external/chromium_org/chrome/browser/safe_browsing/
H A Dchunk_range.cc103 int mid = ((unsigned int)low + (unsigned int)high) >> 1; local
104 const ChunkRange& chunk = ranges[mid];
108 // Adjust our mid point.
110 low = mid + 1;
112 high = mid - 1;
/external/chromium_org/net/quic/crypto/
H A Dcommon_cert_set.cc116 size_t mid = min + ((max - min) / 2); variable
117 int n = Compare(cert, kSets[j].certs[mid], kSets[j].lens[mid]);
119 if (mid == 0) {
122 max = mid - 1;
124 min = mid + 1;
127 *out_index = mid;
/external/chromium_org/third_party/cld/encodings/compact_lang_det/
H A Dext_lang_enc.cc521 int mid = (lo + hi) >> 1; local
522 if (strcmp(temp, kNameScriptPair[mid].name) < 0) {
523 hi = mid;
524 } else if (strcmp(temp, kNameScriptPair[mid].name) > 0) {
525 lo = mid + 1;
527 return kNameScriptPair[mid].lscript;
/external/chromium_org/third_party/opus/src/celt/
H A Drate.h67 int mid = (lo+hi+1)>>1; local
69 if ((int)cache[mid] >= bits)
70 hi = mid;
72 lo = mid;
/external/chromium_org/third_party/skia/src/animator/
H A DSkGetCondensedInfo.cpp26 int mid = (hi + lo) >> 1; local
27 if (strcmp(&strings[lengths[mid << 2]], target) < 0)
28 lo = mid + 1;
30 hi = mid;
42 int mid = (hi + lo) >> 1; local
43 if (gTypeIDs[mid] < match)
44 lo = mid + 1;
46 hi = mid;
/external/chromium_org/third_party/skia/src/core/
H A DSkTSearch.cpp32 int mid = (hi + lo) >> 1; local
33 const char* elem = index_into_base(base, mid, elemSize);
37 lo = mid + 1;
39 hi = mid;
41 return mid;
/external/e2fsprogs/lib/blkid/
H A Dgetsize.c182 const blkid_loff_t mid = (low + high) / 2; local
184 if (valid_offset(fd, mid))
185 low = mid;
187 high = mid;
/external/libopus/celt/
H A Drate.h67 int mid = (lo+hi+1)>>1; local
69 if ((int)cache[mid] >= bits)
70 hi = mid;
72 lo = mid;
/external/libvterm/src/
H A Dunicode.c134 int mid; local
139 mid = (min + max) / 2;
140 if (ucs > table[mid].last)
141 min = mid + 1;
142 else if (ucs < table[mid].first)
143 max = mid - 1;
/external/mockito/cglib-and-asm/src/org/mockito/cglib/util/
H A DSorterTemplate.java93 int mid = lo + diff / 2;
94 mergeSort(lo, mid);
95 mergeSort(mid, hi);
96 merge(lo, mid, hi, mid - lo, hi - mid);
128 private void rotate(int lo, int mid, int hi) { argument
130 int hit = mid - 1;
134 lot = mid; hit = hi - 1;
148 int mid
[all...]
/external/skia/src/animator/
H A DSkGetCondensedInfo.cpp26 int mid = (hi + lo) >> 1; local
27 if (strcmp(&strings[lengths[mid << 2]], target) < 0)
28 lo = mid + 1;
30 hi = mid;
42 int mid = (hi + lo) >> 1; local
43 if (gTypeIDs[mid] < match)
44 lo = mid + 1;
46 hi = mid;

Completed in 826 milliseconds

1234567891011