/external/skia/tests/ |
H A D | PathOpsDLineTest.cpp | 50 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/qemu/distrib/sdl-1.2.15/src/stdlib/ |
H A D | SDL_qsort.c | 199 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,las 282 pivot_big(char *first, char *mid, char *last, size_t size, int compare(const void *, const void *)) argument 336 { char * mid=first+size*((last-first)/size >> 1); local 367 { char * mid=first+size*((last-first)/size >> 1); local 402 { char * mid=first+WORD_BYTES*((last-first) / (2*WORD_BYTES)); local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
H A D | scanresults.cpp | 87 bssid = (*it).mid(pos); 89 freq = (*it).mid(pos); 91 signal = (*it).mid(pos); 93 flags = (*it).mid(pos); 95 ssid = (*it).mid(pos);
|
/external/chromium_org/third_party/freetype/src/psnames/ |
H A D | psmodule.c | 401 PS_UniMap *min, *max, *mid, *result = NULL; local 414 mid = min + ( ( max - min ) >> 1 ); 416 if ( mid->unicode == unicode ) 418 result = mid; 422 base_glyph = BASE_GLYPH( mid->unicode ); 425 result = mid; /* remember match but continue search for base glyph */ 431 min = mid + 1; 433 max = mid - 1; 454 FT_UInt mid; local 461 mid [all...] |
/external/freetype/src/psnames/ |
H A D | psmodule.c | 401 PS_UniMap *min, *max, *mid, *result = NULL; local 414 mid = min + ( ( max - min ) >> 1 ); 416 if ( mid->unicode == unicode ) 418 result = mid; 422 base_glyph = BASE_GLYPH( mid->unicode ); 425 result = mid; /* remember match but continue search for base glyph */ 431 min = mid + 1; 433 max = mid - 1; 454 FT_UInt mid; local 461 mid [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/psnames/ |
H A D | fxft_psmodule.c | 460 PS_UniMap *min, *max, *mid, *result = NULL; local 473 mid = min + ( ( max - min ) >> 1 ); 475 if ( mid->unicode == unicode ) 477 result = mid; 481 base_glyph = BASE_GLYPH( mid->unicode ); 484 result = mid; /* remember match but continue search for base glyph */ 490 min = mid + 1; 492 max = mid - 1; 513 FT_UInt mid; local 520 mid [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
H A D | chunk_range.cc | 103 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/third_party/skia/include/core/ |
H A D | SkTSearch.h | 52 int mid = (hi + lo) >> 1; local 53 const T* elem = (const T*)((const char*)base + mid * elemSize); 56 lo = mid + 1; 58 hi = mid;
|
/external/skia/include/core/ |
H A D | SkTSearch.h | 52 int mid = (hi + lo) >> 1; local 53 const T* elem = (const T*)((const char*)base + mid * elemSize); 56 lo = mid + 1; 58 hi = mid;
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | badblocks.c | 164 int low, high, mid; local 180 mid = ((unsigned)low + (unsigned)high)/2; 181 if (mid == low || mid == high) 183 if (blk == bb->list[mid]) 184 return mid; 185 if (blk < bb->list[mid]) 186 high = mid; 188 low = mid;
|
/external/eigen/unsupported/Eigen/src/BVH/ |
H A D | KdBVH.h | 192 int mid = from + 2; local 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; local 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/protobuf/java/src/main/java/com/google/protobuf/nano/ |
H A D | FieldArray.java | 242 int mid = (lo + hi) >>> 1; 243 int midVal = mFieldNumbers[mid]; 246 lo = mid + 1; 248 hi = mid - 1; 250 return mid; // value found
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkStrokerPriv.cpp | 168 SkVector mid; local 196 mid.set(SkScalarMul(before.fX + after.fX, radius), 216 // choose the most accurate way to form the initial mid-vector 219 mid.set(after.fY - before.fY, before.fX - after.fX); 221 mid.negate(); 224 mid.set(before.fX + after.fX, before.fY + after.fY); 226 mid.setLength(SkScalarDiv(radius, sinHalfAngle)); 229 outer->setLastPt(pivot.fX + mid.fX, pivot.fY + mid.fY); 231 outer->lineTo(pivot.fX + mid [all...] |
/external/skia/src/core/ |
H A D | SkStrokerPriv.cpp | 168 SkVector mid; local 196 mid.set(SkScalarMul(before.fX + after.fX, radius), 216 // choose the most accurate way to form the initial mid-vector 219 mid.set(after.fY - before.fY, before.fX - after.fX); 221 mid.negate(); 224 mid.set(before.fX + after.fX, before.fY + after.fY); 226 mid.setLength(SkScalarDiv(radius, sinHalfAngle)); 229 outer->setLastPt(pivot.fX + mid.fX, pivot.fY + mid.fY); 231 outer->lineTo(pivot.fX + mid [all...] |
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
H A D | IncompleteLUT.h | 33 Index mid; 43 mid = first; 44 RealScalar abskey = abs(row(mid)); 47 ++mid; 48 swap(row(mid), row(j)); 49 swap(ind(mid), ind(j)); 53 swap(row(mid), row(first)); 54 swap(ind(mid), ind(first)); 56 if (mid > ncut) last = mid [all...] |
/external/compiler-rt/include/sanitizer/ |
H A D | common_interface_defs.h | 78 // [beg, end); the memory [beg, mid) is used to store the current elements 79 // and the memory [mid, end) is reserved for future elements; 80 // beg <= mid <= end. For example, in "std::vector<> v" 83 // mid = beg + v.size() * sizeof(v[0]); 86 // container so that the tool can report errors when memory from [mid, end) 88 // Supply the old and the new values of mid (old_mid/new_mid). 89 // In the initial state mid == end and so should be the final 110 // - [beg, mid) is addressable, 111 // - [mid, end) is unaddressable. 113 // such complexity by touching only parts of the container around beg/mid/en [all...] |
/external/e2fsprogs/lib/blkid/ |
H A D | getsize.c | 182 const blkid_loff_t mid = (low + high) / 2; local 184 if (valid_offset(fd, mid)) 185 low = mid; 187 high = mid;
|
/external/qemu/distrib/sdl-1.2.15/src/main/qtopia/ |
H A D | SDL_qtopia_main.cc | 22 if(slash != -1) { appname = appname.mid(slash+1); }
|
/external/e2fsprogs/e2fsck/ |
H A D | dirinfo.c | 186 int low, high, mid; local 245 mid = (low+high)/2; 246 if (mid == low || mid == high) 248 if (ino == ctx->dir_info->array[mid].ino) { 251 ctx->dir_info->array[mid].dotdot, 252 ctx->dir_info->array[mid].parent); 254 return &ctx->dir_info->array[mid]; 256 if (ino < ctx->dir_info->array[mid].ino) 257 high = mid; [all...] |
H A D | ea_refcount.c | 157 int low, high, mid; local 183 mid = (low+high)/2; 184 if (blk == refcount->list[mid].ea_blk) { 185 refcount->cursor = mid+1; 186 return &refcount->list[mid]; 188 if (blk < refcount->list[mid].ea_blk) 189 high = mid-1; 191 low = mid+1;
|
/external/bluetooth/bluedroid/embdrv/sbc/decoder/srce/ |
H A D | readsamplesjoint.inc | 99 * Check if we need to do mid/side 102 OI_INT32 mid = *(s - NROF_SUBBANDS); 104 *(s - NROF_SUBBANDS) = mid + side; 105 dequant = mid - side;
|
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/ |
H A D | t1afm.c | 323 AFM_KernPair min, mid, max; local 336 mid = min + ( max - min ) / 2; 337 midi = KERN_INDEX( mid->index1, mid->index2 ); 341 kerning->x = mid->x; 342 kerning->y = mid->y; 348 min = mid + 1; 350 max = mid - 1;
|
/external/chromium_org/third_party/cld/encodings/compact_lang_det/ |
H A D | ext_lang_enc.cc | 521 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/mesa/src/src/gallium/winsys/svga/drm/ |
H A D | vmw_screen_svga.c | 271 int mid = (first + last) / 2; local 273 if ((SVGA3dDevCapIndex) capArray[mid][0] == index) { 277 result->u = capArray[mid][1]; 284 if ((SVGA3dDevCapIndex) capArray[mid][0] > index) { 285 last = mid - 1; 287 first = mid + 1;
|
/external/chromium_org/third_party/smhasher/src/ |
H A D | PMurHash.c | 304 //const uint8_t *mid = ptr + rand()%(end-ptr)+1; 305 const uint8_t *mid = ptr + (rand()&0xF); 306 mid = mid<end?mid:end; 307 PMurHash32_Process(&h1, &carry, ptr, mid-ptr); 308 ptr = mid;
|