/external/tesseract/liblept/ |
D | heap.c | 72 #define SWAP_ITEMS(i, j) { void *tempitem = lh->array[(i)]; \ 73 lh->array[(i)] = lh->array[(j)]; \ 74 lh->array[(j)] = tempitem; } 91 L_HEAP *lh; in lheapCreate() local 99 if ((lh = (L_HEAP *)CALLOC(1, sizeof(L_HEAP))) == NULL) in lheapCreate() 101 if ((lh->array = (void **)CALLOC(nalloc, sizeof(void *))) == NULL) in lheapCreate() 103 lh->nalloc = nalloc; in lheapCreate() 104 lh->n = 0; in lheapCreate() 105 lh->direction = direction; in lheapCreate() 106 return lh; in lheapCreate() [all …]
|
D | watershed.c | 151 static void pushWSPixel(L_HEAP *lh, L_STACK *stack, l_int32 val, 153 static void popWSPixel(L_HEAP *lh, L_STACK *stack, l_int32 *pval, 309 L_HEAP *lh; in wshedApply() local 324 lh = lheapCreate(0, L_SORT_INCREASING); /* remove lowest values first */ in wshedApply() 337 pushWSPixel(lh, rstack, (l_int32)uval, x, y, i); in wshedApply() 359 pushWSPixel(lh, rstack, (l_int32)uval, x, y, nseeds + i); in wshedApply() 390 while (lheapGetCount(lh) > 0) { in wshedApply() 391 popWSPixel(lh, rstack, &val, &x, &y, &index); in wshedApply() 411 pushWSPixel(lh, rstack, (l_int32)uval, j, i, cindex); in wshedApply() 521 lheapDestroy(&lh, TRUE); in wshedApply() [all …]
|
D | colorquant2.c | 192 static PIXCMAP *pixcmapGenerateFromMedianCuts(L_HEAP *lh, l_int32 *histo, 295 L_HEAP *lh, *lhs; in pixMedianCutQuantGeneral() local 388 lh = lheapCreate(0, L_SORT_DECREASING); in pixMedianCutQuantGeneral() 389 lheapAdd(lh, vbox); in pixMedianCutQuantGeneral() 394 vbox = (L_BOX3D *)lheapRemove(lh); in pixMedianCutQuantGeneral() 396 lheapAdd(lh, vbox); in pixMedianCutQuantGeneral() 407 lheapAdd(lh, vbox1); in pixMedianCutQuantGeneral() 411 lheapAdd(lh, vbox2); in pixMedianCutQuantGeneral() 425 while ((vbox = (L_BOX3D *)lheapRemove(lh))) { in pixMedianCutQuantGeneral() 429 lheapDestroy(&lh, TRUE); in pixMedianCutQuantGeneral() [all …]
|
D | partition.c | 181 L_HEAP *lh; in boxaGetWhiteblocks() local 207 lh = lheapCreate(20, L_SORT_DECREASING); in boxaGetWhiteblocks() 211 lheapAdd(lh, partel); in boxaGetWhiteblocks() 217 if ((partel = (PARTEL *)lheapRemove(lh)) == NULL) /* we're done */ in boxaGetWhiteblocks() 253 lheapAdd(lh, partel); in boxaGetWhiteblocks() 271 while ((partel = (PARTEL *)lheapRemove(lh)) != NULL) in boxaGetWhiteblocks() 273 lheapDestroy(&lh, FALSE); in boxaGetWhiteblocks()
|
D | maze.c | 727 L_HEAP *lh; in pixSearchGrayMaze() local 752 lh = lheapCreate(0, L_SORT_INCREASING); /* always remove closest pixels */ in pixSearchGrayMaze() 761 lheapAdd(lh, el); in pixSearchGrayMaze() 767 while (lheapGetCount(lh) > 0) { in pixSearchGrayMaze() 768 elp = (MAZEEL *)lheapRemove(lh); in pixSearchGrayMaze() 793 lheapAdd(lh, el); in pixSearchGrayMaze() 808 lheapAdd(lh, el); in pixSearchGrayMaze() 823 lheapAdd(lh, el); in pixSearchGrayMaze() 838 lheapAdd(lh, el); in pixSearchGrayMaze() 844 lheapDestroy(&lh, TRUE); in pixSearchGrayMaze()
|
D | colorquant1.c | 1630 L_HEAP *lh; in pixOctreeQuantByPopulation() local 1747 lh = lheapCreate(500, L_SORT_DECREASING); in pixOctreeQuantByPopulation() 1756 lheapAdd(lh, opop); in pixOctreeQuantByPopulation() 1765 opop = (L_OCTCUBE_POP*)lheapRemove(lh); in pixOctreeQuantByPopulation() 1793 opop = (L_OCTCUBE_POP*)lheapRemove(lh); in pixOctreeQuantByPopulation() 1806 lheapDestroy(&lh, TRUE); in pixOctreeQuantByPopulation() 2189 L_HEAP *lh; in pixOctreeQuantNumColors() local 2347 lh = lheapCreate(512, L_SORT_DECREASING); in pixOctreeQuantNumColors() 2349 lheapAdd(lh, oqca[i]); in pixOctreeQuantNumColors() 2362 oqc = (OQCELL *)lheapRemove(lh); in pixOctreeQuantNumColors() [all …]
|
/external/openssl/crypto/lhash/ |
D | lhash.c | 110 static void expand(LHASH *lh); 111 static void contract(LHASH *lh); 112 static LHASH_NODE **getrn(LHASH *lh, const void *data, unsigned long *rhash); 157 void lh_free(LHASH *lh) in lh_free() argument 162 if (lh == NULL) in lh_free() 165 for (i=0; i<lh->num_nodes; i++) in lh_free() 167 n=lh->b[i]; in lh_free() 175 OPENSSL_free(lh->b); in lh_free() 176 OPENSSL_free(lh); in lh_free() 179 void *lh_insert(LHASH *lh, void *data) in lh_insert() argument [all …]
|
D | lh_stats.c | 73 void lh_stats(LHASH *lh, FILE *out) in lh_stats() argument 75 fprintf(out,"num_items = %lu\n",lh->num_items); in lh_stats() 76 fprintf(out,"num_nodes = %u\n",lh->num_nodes); in lh_stats() 77 fprintf(out,"num_alloc_nodes = %u\n",lh->num_alloc_nodes); in lh_stats() 78 fprintf(out,"num_expands = %lu\n",lh->num_expands); in lh_stats() 79 fprintf(out,"num_expand_reallocs = %lu\n",lh->num_expand_reallocs); in lh_stats() 80 fprintf(out,"num_contracts = %lu\n",lh->num_contracts); in lh_stats() 81 fprintf(out,"num_contract_reallocs = %lu\n",lh->num_contract_reallocs); in lh_stats() 82 fprintf(out,"num_hash_calls = %lu\n",lh->num_hash_calls); in lh_stats() 83 fprintf(out,"num_comp_calls = %lu\n",lh->num_comp_calls); in lh_stats() [all …]
|
D | lhash.h | 172 #define lh_error(lh) ((lh)->error) argument 175 void lh_free(LHASH *lh); 176 void *lh_insert(LHASH *lh, void *data); 177 void *lh_delete(LHASH *lh, const void *data); 178 void *lh_retrieve(LHASH *lh, const void *data); 179 void lh_doall(LHASH *lh, LHASH_DOALL_FN_TYPE func); 180 void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg); 182 unsigned long lh_num_items(const LHASH *lh); 185 void lh_stats(const LHASH *lh, FILE *out); 186 void lh_node_stats(const LHASH *lh, FILE *out); [all …]
|
/external/icu4c/i18n/ |
D | ucol_bld.cpp | 278 inline int32_t ucol_inv_getNext(UColTokenParser *src, UColTokListHeader *lh, uint32_t strength) { in ucol_inv_getNext() argument 279 uint32_t CE = lh->baseCE; in ucol_inv_getNext() 280 uint32_t SecondCE = lh->baseContCE; in ucol_inv_getNext() 304 lh->nextCE = nextCE; in ucol_inv_getNext() 305 lh->nextContCE = nextContCE; in ucol_inv_getNext() 310 U_CFUNC void ucol_inv_getGapPositions(UColTokenParser *src, UColTokListHeader *lh, UErrorCode *stat… in ucol_inv_getGapPositions() argument 318 UColToken *tok = lh->first; in ucol_inv_getGapPositions() 322 lh->gapsHi[3*i] = 0; in ucol_inv_getGapPositions() 323 lh->gapsHi[3*i+1] = 0; in ucol_inv_getGapPositions() 324 lh->gapsHi[3*i+2] = 0; in ucol_inv_getGapPositions() [all …]
|
D | ucol_tok.cpp | 1116 … src->lh = (UColTokListHeader *)uprv_realloc(src->lh, src->listCapacity*sizeof(UColTokListHeader)); in ucol_tok_initAReset() 1117 if(src->lh == NULL) { in ucol_tok_initAReset() 1154 sourceToken->listHeader = &src->lh[src->resultLen]; in ucol_tok_initAReset() 1156 src->lh[src->resultLen].first = NULL; in ucol_tok_initAReset() 1157 src->lh[src->resultLen].last = NULL; in ucol_tok_initAReset() 1158 src->lh[src->resultLen].first = NULL; in ucol_tok_initAReset() 1159 src->lh[src->resultLen].last = NULL; in ucol_tok_initAReset() 1161 src->lh[src->resultLen].reset = sourceToken; in ucol_tok_initAReset() 1238 src->lh[src->resultLen].baseCE = CE & 0xFFFFFF3F; in getVirginBefore() 1240 src->lh[src->resultLen].baseContCE = SecondCE; in getVirginBefore() [all …]
|
D | ucol_res.cpp | 461 sourceReset = sourceParser.lh[i].reset; in ucol_equals() 465 targetReset = targetParser.lh[j].reset; in ucol_equals() 469 sourceReset = sourceParser.lh[i].first; in ucol_equals() 470 targetReset = targetParser.lh[j].first; in ucol_equals()
|
D | ucol_tok.h | 121 UColTokListHeader *lh; member
|
/external/openssl/include/openssl/ |
D | lhash.h | 172 #define lh_error(lh) ((lh)->error) argument 175 void lh_free(LHASH *lh); 176 void *lh_insert(LHASH *lh, void *data); 177 void *lh_delete(LHASH *lh, const void *data); 178 void *lh_retrieve(LHASH *lh, const void *data); 179 void lh_doall(LHASH *lh, LHASH_DOALL_FN_TYPE func); 180 void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg); 182 unsigned long lh_num_items(const LHASH *lh); 185 void lh_stats(const LHASH *lh, FILE *out); 186 void lh_node_stats(const LHASH *lh, FILE *out); [all …]
|
/external/grub/stage2/ |
D | boot.c | 48 struct linux_kernel_header *lh; in load_image() local 96 lh = (struct linux_kernel_header *) buffer; in load_image() 219 else if (lh->boot_flag == BOOTSEC_SIGNATURE in load_image() 220 && lh->setup_sects <= LINUX_MAX_SETUP_SECTS) in load_image() 223 int setup_sects = lh->setup_sects; in load_image() 225 if (lh->header == LINUX_MAGIC_SIGNATURE && lh->version >= 0x0200) in load_image() 227 big_linux = (lh->loadflags & LINUX_FLAG_BIG_KERNEL); in load_image() 228 lh->type_of_loader = LINUX_BOOT_LOADER_TYPE; in load_image() 237 if (lh->version >= 0x0201) in load_image() 239 lh->heap_end_ptr = LINUX_HEAP_END_OFFSET; in load_image() [all …]
|
/external/webkit/WebCore/rendering/ |
D | RenderBR.cpp | 57 Length lh = s->lineHeight(); in lineHeight() local 58 if (lh.isNegative()) { in lineHeight() 66 if (lh.isPercent()) in lineHeight() 67 return lh.calcMinValue(s->fontSize()); in lineHeight() 68 return lh.value(); in lineHeight()
|
/external/openssl/crypto/ec/ |
D | ec2_smpl.c | 811 BIGNUM *lh, *y2; in ec_GF2m_simple_is_on_curve() local 833 lh = BN_CTX_get(ctx); in ec_GF2m_simple_is_on_curve() 834 if (lh == NULL) goto err; in ec_GF2m_simple_is_on_curve() 841 if (!BN_GF2m_add(lh, &point->X, &group->a)) goto err; in ec_GF2m_simple_is_on_curve() 842 if (!field_mul(group, lh, lh, &point->X, ctx)) goto err; in ec_GF2m_simple_is_on_curve() 843 if (!BN_GF2m_add(lh, lh, &point->Y)) goto err; in ec_GF2m_simple_is_on_curve() 844 if (!field_mul(group, lh, lh, &point->X, ctx)) goto err; in ec_GF2m_simple_is_on_curve() 845 if (!BN_GF2m_add(lh, lh, &group->b)) goto err; in ec_GF2m_simple_is_on_curve() 847 if (!BN_GF2m_add(lh, lh, y2)) goto err; in ec_GF2m_simple_is_on_curve() 848 ret = BN_is_zero(lh); in ec_GF2m_simple_is_on_curve()
|
/external/icu4c/data/translit/ |
D | Latin_InterIndic.txt | 75 $lh=\uE044; 134 $x=[$virama$aa$ai$au$ii$i$uu$u$rrh$rh$lh$e$o$se$ce$so$co]; 153 \u0314lh>$lh; 154 \u0314l\u0325>$lh; 174 $consonants{ lh>$lh; 175 $consonants{ l\u0325>$lh; 192 lh>$wl; 283 $virama lh>$lh; 284 $virama l\u0325>$lh;
|
D | InterIndic_Latin.txt | 75 $lh=\uE044; 121 $x=[$aa$ai$au$ii$i$uu$u$rrh$rh$lh$llh$e$o$se$ce$so$co]; 338 $forceIndependentMatra{$lh > \u0314l\u0325; 357 $lh > l\u0325;
|
/external/openssl/crypto/txt_db/ |
D | txt_db.c | 198 LHASH *lh; in TXT_DB_get_by_index() local 205 lh=db->index[idx]; in TXT_DB_get_by_index() 206 if (lh == NULL) in TXT_DB_get_by_index() 211 ret=(char **)lh_retrieve(lh,value); in TXT_DB_get_by_index()
|
/external/openssl/crypto/engine/ |
D | eng_table.c | 105 LHASH *lh; in IMPLEMENT_LHASH_HASH_FN() local 108 if((lh = lh_new(LHASH_HASH_FN(engine_pile_hash), in IMPLEMENT_LHASH_HASH_FN() 111 *t = (ENGINE_TABLE *)lh; in IMPLEMENT_LHASH_HASH_FN()
|
/external/jhead/ |
D | jpgfile.c | 140 int ll,lh, got; in ReadJpegSections() local 159 lh = fgetc(infile); in ReadJpegSections() 162 itemlen = (lh << 8) | ll; in ReadJpegSections() 181 Data[0] = (uchar)lh; in ReadJpegSections()
|
/external/e2fsprogs/lib/ss/ |
D | std_rqs.ct | 13 list_help, lh;
|
/external/webkit/JavaScriptCore/jit/ |
D | ExecutableAllocatorFixedVMPool.cpp | 83 void set_less(handle h, handle lh) { h->less = lh; } in set_less()
|
/external/webkit/JavaScriptCore/wtf/ |
D | AVLTree.h | 477 void set_lt(handle h, handle lh) { abs.set_less(h, lh); } in set_lt() argument
|