Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 818) sorted by relevance

12345678910>>...33

/external/qemu/distrib/sdl-1.2.12/src/stdlib/
DSDL_qsort.c92 typedef struct { char * first; char * last; } stack_entry; member
93 #define pushLeft {stack[stacktop].first=ffirst;stack[stacktop++].last=last;}
94 #define pushRight {stack[stacktop].first=first;stack[stacktop++].last=llast;}
95 #define doLeft {first=ffirst;llast=last;continue;}
96 #define doRight {ffirst=first;last=llast;continue;}
98 first=ffirst=stack[stacktop].first;\
169 { size_t l=last-ffirst,r=llast-first; \
181 if ((size_t)(last-first)>PIVOT_THRESHOLD*sz) mid=pivot_big(first,mid,last,sz,compare);\
183 if (compare(first,mid)<0) { \
186 if (compare(first,mid)>0) swapper(first,mid);\
[all …]
/external/elfutils/lib/
Dlist.h18 #define CDBL_LIST_ADD_REAR(first, newp) \ argument
23 if (unlikely ((first) == NULL)) \
24 (first) = _newp->next = _newp->previous = _newp; \
27 _newp->next = (first); \
28 _newp->previous = (first)->previous; \
34 #define CDBL_LIST_DEL(first, elem) \ argument
38 assert (first != NULL && _elem != NULL \
39 && (first != elem \
40 || ({ __typeof (elem) _runp = first->next; \
41 while (_runp != first) \
[all …]
Ddynamicsizehash.c76 htab->table[idx].next = htab->first; in insert_entry_2()
77 htab->first = &htab->table[idx]; in insert_entry_2()
80 if (htab->first == NULL) in insert_entry_2()
81 htab->first = htab->table[idx].next = &htab->table[idx]; in insert_entry_2()
84 htab->table[idx].next = htab->first->next; in insert_entry_2()
85 htab->first = htab->first->next = &htab->table[idx]; in insert_entry_2()
99 __typeof__ (htab->first) first; in insert_entry_2() local
101 __typeof__ (htab->first) runp; in insert_entry_2()
114 first = htab->first; in insert_entry_2()
115 htab->first = NULL; in insert_entry_2()
[all …]
/external/opencore/oscl/oscl/osclutil/src/
Doscl_priqueue.cpp29 OSCL_EXPORT_REF void OsclPriorityQueueBase::push_heap(OsclAny* first, OsclAny* last) in push_heap() argument
41 int index = delta_T(first, last) - 1; in push_heap()
43 …ndex > 0 && pOpaqueType->compare_LT(pVec->increment_T(first, parent_index), pVec->increment_T(firs… in push_heap()
46 pOpaqueType->swap(pVec->increment_T(first, index), pVec->increment_T(first, parent_index)); in push_heap()
52 OSCL_EXPORT_REF void OsclPriorityQueueBase::pop_heap(OsclAny* first, OsclAny* last) in pop_heap() argument
62 pOpaqueType->swap(first, pVec->increment_T(last, -1)); in pop_heap()
66 int new_last_index = delta_T(first, last) - 1; in pop_heap()
71 …&& (pOpaqueType->compare_LT(pVec->increment_T(first, child), pVec->increment_T(first, child + 1)))) in pop_heap()
77 … if (pOpaqueType->compare_LT(pVec->increment_T(first, index), pVec->increment_T(first, child))) in pop_heap()
80 pOpaqueType->swap(pVec->increment_T(first, index), pVec->increment_T(first, child)); in pop_heap()
[all …]
Doscl_priqueue.h69 OSCL_IMPORT_REF void push_heap(OsclAny* first, OsclAny* last) ;
71 OSCL_IMPORT_REF void pop_heap(OsclAny* first, OsclAny* last) ;
73 OSCL_IMPORT_REF OsclAny* find_heap(const OsclAny* input, OsclAny* first, OsclAny* last) ;
86 int delta_T(OsclAny*first, OsclAny*last) in delta_T() argument
88 return ((int)last - (int)first) / pVec->sizeof_T; in delta_T()
182 void push_heap(iterator first, iterator last) in push_heap() argument
184 OsclPriorityQueueBase::push_heap(first, last); in push_heap()
187 void pop_heap(iterator first, iterator last) in pop_heap() argument
189 OsclPriorityQueueBase::pop_heap(first, last); in pop_heap()
192 iterator find_heap(const value_type& input, iterator first, iterator last) in find_heap() argument
[all …]
/external/skia/src/core/
DSkDeque.cpp112 Head* first = fFront; in push_front() local
115 if (NULL == first->fBegin) { in push_front()
117 first->fEnd = first->fStop; in push_front()
118 begin = first->fStop - fElemSize; in push_front()
120 begin = first->fBegin - fElemSize; in push_front()
121 if (begin < first->start()) { // no more room in this chunk in push_front()
125 first = (Head*)sk_malloc_throw(size); in push_front()
126 first->init(size); in push_front()
127 first->fNext = fFront; in push_front()
128 fFront->fPrev = first; in push_front()
[all …]
/external/webkit/WebKitTools/android/flex-2.5.4a/
Dnfa.c293 int link_machines( first, last ) in link_machines() argument
294 int first, last; in link_machines()
296 if ( first == NIL )
300 return first;
304 mkxtion( finalst[first], last );
305 finalst[first] = finalst[last];
306 lastst[first] = MAX( lastst[first], lastst[last] );
307 firstst[first] = MIN( firstst[first], firstst[last] );
309 return first;
367 int mkbranch( first, second ) in mkbranch() argument
[all …]
/external/opencore/oscl/oscl/osclbase/src/
Doscl_vector.cpp155 OSCL_EXPORT_REF OsclAny* Oscl_Vector_Base::erase(OsclAny* first, OsclAny* last) in erase() argument
160 destroy(first, last); in erase()
161 move(last, end(), first); in erase()
162 numelems -= (((uint32)last - (uint32)first) / sizeof_T); in erase()
163 return first; in erase()
204 OsclAny* Oscl_Vector_Base::move(OsclAny* first, OsclAny* last, OsclAny* result) in move() argument
206 oscl_memmove(result, first, (uint32)last - (uint32)first); in move()
210 OsclAny* Oscl_Vector_Base::copy(OsclAny* first, OsclAny* last, OsclAny* result) in copy() argument
212 while (first != last) in copy()
215 pOpaqueType->construct(result, first); in copy()
[all …]
Doscl_tree.h52 T1 first; member
54 Oscl_Pair() : first(T1()), second(T2()) {} in Oscl_Pair()
55 Oscl_Pair(const T1& a, const T2& b) : first(a), second(b) {} in Oscl_Pair()
478 return insert_unique(v).first; in insert_unique()
485 return insert_unique(v).first; in insert_unique()
501 return insert_unique(v).first; in insert_unique()
505 void insert_unique(const_iterator first, const_iterator last) in insert_unique() argument
507 for (; first != last; ++first) in insert_unique()
508 insert_unique(*first); in insert_unique()
511 void insert_unique(const value_type* first, const value_type* last) in insert_unique() argument
[all …]
Doscl_vector.h161 OSCL_IMPORT_REF OsclAny* erase(OsclAny* first, OsclAny* last) ;
201 OsclAny* move(OsclAny* first, OsclAny* last, OsclAny* result) ;
203 OsclAny* copy(OsclAny* first, OsclAny* last, OsclAny* result) ;
205 OsclAny* uninitialized_copy(OsclAny* first, OsclAny* last, OsclAny* result) ;
208 void destroy(OsclAny* first, OsclAny* last) ;
428 iterator erase(iterator first, iterator last) in erase() argument
430 return (iterator)Oscl_Vector_Base::erase(first, last); in erase()
458 void destroy(OsclAny* first) in destroy() argument
460 OSCL_ASSERT(first); in destroy()
461 OSCL_UNUSED_ARG(first); in destroy()
[all …]
/external/opencore/codecs_v2/omx/omx_proxy/src/
Domx_proxy_vector.h227 iterator erase(iterator first, iterator last) in erase() argument
229 iterator it = copy(last, end(), first); in erase()
231 numelems -= (last - first); in erase()
232 return first; in erase()
247 iterator copy(iterator first, iterator last, iterator result) in copy() argument
249 while (first != last) *result++ = *first++; in copy()
252 iterator uninitialized_copy(iterator first, iterator last, iterator result) in uninitialized_copy() argument
254 while (first != last) construct(result++, *first++); in uninitialized_copy()
258 void destroy(iterator first) in destroy() argument
260 OSCL_UNUSED_ARG(first); in destroy()
[all …]
/external/icu4c/test/cintltst/
Dcustrtst.c718 const UChar *first, *last; in TestSurrogateSearching() local
721 first=s+u_strlen(s); in TestSurrogateSearching()
724 first!=u_strchr(s, nul) || in TestSurrogateSearching()
725 first!=u_strchr32(s, nul) || in TestSurrogateSearching()
726 first!=u_memchr(s, nul, LENGTHOF(s)) || in TestSurrogateSearching()
727 first!=u_memchr32(s, nul, LENGTHOF(s)) || in TestSurrogateSearching()
728 first!=u_strrchr(s, nul) || in TestSurrogateSearching()
729 first!=u_strrchr32(s, nul) || in TestSurrogateSearching()
730 first!=u_memrchr(s, nul, LENGTHOF(s)) || in TestSurrogateSearching()
731 first!=u_memrchr32(s, nul, LENGTHOF(s)) in TestSurrogateSearching()
[all …]
/external/emma/core/java12/com/vladium/jcd/lib/
DTypes.java46 boolean first = true; in accessFlagsToString()
56 if (first) in accessFlagsToString()
57 first = false; in accessFlagsToString()
76 if (first) in accessFlagsToString()
77 first = false; in accessFlagsToString()
497 char first = typedescriptor.charAt (0); in descriptorToClass() local
499 if (first == '[') in descriptorToClass()
502 else if (first == 'L') in descriptorToClass()
507 return primitive (first); in descriptorToClass()
514 char first = typedescriptor.charAt (0); in arrayOf() local
[all …]
/external/iptables/libiptc/
Dlinux_list.h286 struct list_head *first = list->next; in __list_splice() local
290 first->prev = head; in __list_splice()
291 head->next = first; in __list_splice()
510 struct hlist_node *first; member
517 #define HLIST_HEAD_INIT { .first = NULL }
518 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
519 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
529 return !h->first; in hlist_empty()
585 struct hlist_node *first = h->first; in hlist_add_head() local
586 n->next = first; in hlist_add_head()
[all …]
/external/opencore/oscl/unit_test/src/
Dunit_test_vector.h351 iterator erase(iterator first, iterator last) in erase() argument
353 iterator it = copy(last, end(), first); in erase()
355 numelems -= (last - first); in erase()
356 return first; in erase()
371 iterator copy(iterator first, iterator last, iterator result) in copy() argument
373 while (first != last) *result++ = *first++; in copy()
376 iterator uninitialized_copy(iterator first, iterator last, iterator result) in uninitialized_copy() argument
378 while (first != last) construct(result++, *first++); in uninitialized_copy()
382 void destroy(iterator first) in destroy() argument
384 first->~T(); in destroy()
[all …]
/external/webkit/JavaScriptCore/tests/mozilla/js1_2/Array/
Dsplice2.js43 function mySplice(testArray, splicedArray, first, len, elements) argument
46 var adjustedFirst = first;
49 if (adjustedFirst < 0) adjustedFirst = testArray.length + first;
74 for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++)
89 actualRemoved = actualSpliced.splice(first,len,-97,new String("test arg"),[],9.8);
90 …expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[-97,new String("test arg"),[],9.8]…
92 var adjustedFirst = first;
93 if (adjustedFirst < 0) adjustedFirst = testArray.length + first;
111 …" test: " + "a.splice(" + first + "," + len + ",-97,new String('test arg'),[],9.8)\n" +
Dsplice1.js43 function mySplice(testArray, splicedArray, first, len, elements) argument
46 var adjustedFirst = first;
49 if (adjustedFirst < 0) adjustedFirst = testArray.length + first;
78 for (var first = -(testArray.length+2); first <= 2 + testArray.length; first++)
93 actualRemoved = actualSpliced.splice(first,len);
94 expectedRemoved = mySplice(testArray,expectedSpliced,first,len,[]);
96 var adjustedFirst = first;
97 if (adjustedFirst < 0) adjustedFirst = testArray.length + first;
113 …" test: " + "a.splice(" + first + "," + len + ",-97,new String('test arg'),[],9.8)\n" +
/external/freetype/src/base/
Dftoutln.c68 FT_UInt first; /* index of first point in contour */ in FT_Outline_Decompose() local
80 first = 0; in FT_Outline_Decompose()
94 v_start = outline->points[first]; in FT_Outline_Decompose()
104 point = outline->points + first; in FT_Outline_Decompose()
105 tags = outline->tags + first; in FT_Outline_Decompose()
278 first = last + 1; in FT_Outline_Decompose()
538 FT_Int first, last; in FT_Outline_Reverse() local
544 first = 0; in FT_Outline_Reverse()
552 FT_Vector* p = outline->points + first; in FT_Outline_Reverse()
569 char* p = outline->tags + first; in FT_Outline_Reverse()
[all …]
/external/webkit/WebCore/platform/
DArena.cpp98 pool->first.next = NULL; in InitArenaPool()
99 pool->first.base = pool->first.avail = pool->first.limit = in InitArenaPool()
100 (uword)ARENA_ALIGN(pool, &pool->first + 1); in InitArenaPool()
101 pool->current = &pool->first; in InitArenaPool()
165 if ( 0 == pool->first.next ) in ArenaAllocate()
166 pool->first.next = a; in ArenaAllocate()
192 if ( !pool->first.next ) in ArenaAllocate()
193 pool->first.next = a; in ArenaAllocate()
250 FreeArenaList(pool, &pool->first, false); in FreeArenaPool()
255 FreeArenaList(pool, &pool->first, true); in FinishArenaPool()
[all …]
/external/webkit/WebCore/css/
DPair.h42 …static PassRefPtr<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> … in create() argument
44 return adoptRef(new Pair(first, second)); in create()
48 CSSPrimitiveValue* first() const { return m_first.get(); } in first() function
51 void setFirst(PassRefPtr<CSSPrimitiveValue> first) { m_first = first; } in setFirst() argument
56 Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second) in Pair() argument
57 : m_first(first), m_second(second) { } in Pair()
/external/icu4c/tools/genprops/misc/
Ducdmerge.c75 long first, last, c; in main() local
78 first=last=-1; in main()
98 if(first==last) { in main()
107 first, last, /* code point range */ in main()
112 first, last, /* code point range */ in main()
118 first, last, /* code point range */ in main()
123 first=last=-1; in main()
137 first=last=c; in main()
/external/webkit/WebCore/dom/
DScriptExecutionContext.cpp62 ASSERT(iter->first->scriptExecutionContext() == this); in ~ScriptExecutionContext()
63 iter->first->contextDestroyed(); in ~ScriptExecutionContext()
123 ASSERT(iter->first->scriptExecutionContext() == this); in canSuspendActiveDOMObjects()
124 if (!iter->first->canSuspend()) in canSuspendActiveDOMObjects()
135 ASSERT(iter->first->scriptExecutionContext() == this); in suspendActiveDOMObjects()
136 iter->first->suspend(); in suspendActiveDOMObjects()
145 ASSERT(iter->first->scriptExecutionContext() == this); in resumeActiveDOMObjects()
146 iter->first->resume(); in resumeActiveDOMObjects()
155 ASSERT(iter->first->scriptExecutionContext() == this); in stopActiveDOMObjects()
156 iter->first->stop(); in stopActiveDOMObjects()
/external/openssl/crypto/asn1/
Dt_x509a.c70 char oidstr[80], first; in X509_CERT_AUX_print() local
74 first = 1; in X509_CERT_AUX_print()
78 if(!first) BIO_puts(out, ", "); in X509_CERT_AUX_print()
79 else first = 0; in X509_CERT_AUX_print()
87 first = 1; in X509_CERT_AUX_print()
91 if(!first) BIO_puts(out, ", "); in X509_CERT_AUX_print()
92 else first = 0; in X509_CERT_AUX_print()
/external/clearsilver/cs/
Dtest_first_last.cs4 is_first: <?cs var:first(num) ?>
10 is_first: <?cs var:first(day) ?>
11 is_first: <?cs var:first(day.Abbr) ?> -> never
16 Only one, so should be first and last
18 is_first: <?cs var:first(test) ?>
25 is_first: <?cs var:first(x) ?>
26 is_first: <?cs var:first(x.foo) ?> -> never
/external/opencore/pvmi/pvmf/include/
Dpvmf_media_frag_group.h400 MediaDataEntry* first = entry; in append() local
403 first = available_mfgs->next; in append()
407 entry->next = first; in append()
421 MediaDataEntry* first = entry; in append() local
424 first = available_mfgs->next; in append()
428 entry->next = first; in append()
461 MediaDataEntry* first = available_mfgs->next; in allocate() local
462 media_data = first->mediaDataImpl; in allocate()
464 if (first == available_mfgs) in allocate()
470 available_mfgs->next = first->next; in allocate()
[all …]

12345678910>>...33