Home
last modified time | relevance | path

Searched refs:rep (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_ring.cc42 inline bool IsFlatOrExternal(CordRep* rep) { in IsFlatOrExternal() argument
43 return rep->IsFlat() || rep->IsExternal(); in IsFlatOrExternal()
58 auto* rep = CordRepFlat::New(n + extra); in CreateFlat() local
59 rep->length = n; in CreateFlat()
60 memcpy(rep->Data(), s, n); in CreateFlat()
61 return rep; in CreateFlat()
66 void UnrefEntries(const CordRepRing* rep, index_type head, index_type tail) { in UnrefEntries() argument
67 rep->ForEach(head, tail, [rep](index_type ix) { in UnrefEntries()
68 CordRep* child = rep->entry_child(ix); in UnrefEntries()
81 std::ostream& operator<<(std::ostream& s, const CordRepRing& rep) { in operator <<() argument
[all …]
Dcordz_info.cc77 void AnalyzeCordRep(const CordRep* rep) { in AnalyzeCordRep() argument
81 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep()
82 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep()
87 if (repref.rep != nullptr) { in AnalyzeCordRep()
88 if (repref.rep->tag == RING) { in AnalyzeCordRep()
90 } else if (repref.rep->tag == BTREE) { in AnalyzeCordRep()
92 } else if (repref.rep->tag == CONCAT) { in AnalyzeCordRep()
112 const CordRep* rep; member
138 const CordRep* rep = repref.rep; in AssertConcat() local
139 assert(rep == nullptr || rep->tag == CONCAT); in AssertConcat()
[all …]
Dcord_internal.cc36 void CordRep::Destroy(CordRep* rep) { in Destroy() argument
37 assert(rep != nullptr); in Destroy()
41 assert(!rep->refcount.IsImmortal()); in Destroy()
42 if (rep->tag == CONCAT) { in Destroy()
43 CordRepConcat* rep_concat = rep->concat(); in Destroy()
50 rep = nullptr; in Destroy()
52 rep = left; in Destroy()
55 } else if (rep->tag == BTREE) { in Destroy()
56 CordRepBtree::Destroy(rep->btree()); in Destroy()
57 rep = nullptr; in Destroy()
[all …]
Dcord_rep_test_util.h36 size_t start, size_t len, cord_internal::CordRep* rep) { in MakeSubstring() argument
40 sub->length = len <= 0 ? rep->length - start + len : len; in MakeSubstring()
41 sub->child = rep; in MakeSubstring()
118 inline void CordToString(cord_internal::CordRep* rep, std::string& s) { in CordToString() argument
120 size_t length = rep->length; in CordToString()
121 while (rep->tag == cord_internal::SUBSTRING) { in CordToString()
122 offset += rep->substring()->start; in CordToString()
123 rep = rep->substring()->child; in CordToString()
125 if (rep->tag == cord_internal::BTREE) { in CordToString()
126 for (cord_internal::CordRep* edge : rep->btree()->Edges()) { in CordToString()
[all …]
Dcord_rep_consume.cc58 void Consume(bool forward, CordRep* rep, ConsumeFn consume_fn) { in Consume() argument
60 size_t length = rep->length; in Consume()
62 CordRep* rep; in Consume() member
69 if (rep->tag == CONCAT) { in Consume()
70 std::array<CordRep*, 2> res = ClipConcat(rep->concat()); in Consume()
78 rep = right; in Consume()
86 rep = left; in Consume()
94 rep = left; in Consume()
98 rep = right; in Consume()
102 } else if (rep->tag == SUBSTRING) { in Consume()
[all …]
Dcord_rep_consume_test.cc34 int Depth(const CordRep* rep) { in Depth() argument
35 return (rep->tag == CONCAT) ? rep->concat()->depth() : 0; in Depth()
58 auto* rep = new CordRepSubstring(); in CreateSubstring() local
59 rep->length = length; in CreateSubstring()
60 rep->tag = SUBSTRING; in CreateSubstring()
61 rep->start = start; in CreateSubstring()
62 rep->child = child; in CreateSubstring()
63 return rep; in CreateSubstring()
98 for (CordRep* rep : flat) { in TEST()
99 EXPECT_TRUE(rep->refcount.IsOne()); in TEST()
[all …]
Dcord_rep_btree.h161 static CordRepBtree* Create(CordRep* rep);
176 static CordRepBtree* Append(CordRepBtree* tree, CordRep* rep);
177 static CordRepBtree* Prepend(CordRepBtree* tree, CordRep* rep);
267 static bool IsDataEdge(const CordRep* rep);
291 static void Dump(const CordRep* rep, std::ostream& stream);
292 static void Dump(const CordRep* rep, absl::string_view label,
294 static void Dump(const CordRep* rep, absl::string_view label,
322 static CordRepBtree* New(CordRep* rep);
420 static CordRepBtree* CreateSlow(CordRep* rep);
421 static CordRepBtree* AppendSlow(CordRepBtree*, CordRep* rep);
[all …]
Dcordz_info_statistics_test.cc70 CordRepSubstring* Substring(CordRep* rep) { in Substring() argument
72 substring->length = rep->length - 1; in Substring()
74 substring->child = rep; in Substring()
93 for (CordRep* rep : refs) { in ~RefHelper()
94 CordRep::Unref(rep); in ~RefHelper()
100 T* NeedsUnref(T* rep) { in NeedsUnref()
101 refs.push_back(rep); in NeedsUnref()
102 return rep; in NeedsUnref()
108 T* Ref(T* rep, size_t n = 1) { in Ref()
110 NeedsUnref(CordRep::Ref(rep)); in Ref()
[all …]
Dcord_internal.h254 static void Destroy(CordRep* rep);
258 static inline CordRep* Ref(CordRep* rep);
262 static inline void Unref(CordRep* rep);
298 static void Delete(CordRep* rep);
334 static void Release(CordRepExternal* rep) { in Release()
335 delete static_cast<CordRepExternalImpl*>(rep); in Release()
339 inline void CordRepExternal::Delete(CordRep* rep) { in Delete() argument
340 assert(rep != nullptr && rep->IsExternal()); in Delete()
341 auto* rep_external = static_cast<CordRepExternal*>(rep); in Delete()
397 explicit constexpr InlineData(CordRep* rep) : as_tree_(rep) {} in InlineData() argument
[all …]
Dcord_rep_btree.cc55 void DumpAll(const CordRep* rep, bool include_contents, std::ostream& stream, in DumpAll() argument
59 std::string sharing = const_cast<CordRep*>(rep)->refcount.IsOne() in DumpAll()
61 : absl::StrCat("Shared(", rep->refcount.Get(), ")"); in DumpAll()
62 std::string sptr = absl::StrCat("0x", absl::Hex(rep)); in DumpAll()
82 if (rep->IsBtree()) { in DumpAll()
83 const CordRepBtree* node = rep->btree(); in DumpAll()
92 } else if (rep->tag == SUBSTRING) { in DumpAll()
93 const CordRepSubstring* substring = rep->substring(); in DumpAll()
94 stream << "Substring, len = " << rep->length in DumpAll()
96 maybe_dump_data(rep); in DumpAll()
[all …]
Dcord_rep_ring.h161 static CordRepRing* Append(CordRepRing* rep, CordRep* child);
169 static CordRepRing* Append(CordRepRing* rep, string_view data,
180 static CordRepRing* Prepend(CordRepRing* rep, CordRep* child);
188 static CordRepRing* Prepend(CordRepRing* rep, string_view data,
248 static const char* GetLeafData(const CordRep* rep);
252 static const char* GetRepData(const CordRep* rep);
349 friend std::ostream& operator<<(std::ostream& s, const CordRepRing& rep);
372 static CordRepRing* Validate(CordRepRing* rep, const char* file = nullptr,
382 static void Delete(CordRepRing* rep);
388 static void Destroy(CordRepRing* rep);
[all …]
Dcord_rep_btree_navigator.cc38 inline CordRep* Substring(CordRep* rep, size_t offset, size_t n) { in Substring() argument
39 assert(n <= rep->length); in Substring()
40 assert(offset < rep->length); in Substring()
41 assert(offset <= rep->length - n); in Substring()
42 assert(CordRepBtree::IsDataEdge(rep)); in Substring()
45 if (n == rep->length) return CordRep::Ref(rep); in Substring()
47 if (rep->tag == SUBSTRING) { in Substring()
48 offset += rep->substring()->start; in Substring()
49 rep = rep->substring()->child; in Substring()
56 substring->child = CordRep::Ref(rep); in Substring()
[all …]
/third_party/elfutils/libcpu/
Di386_dis.h140 …{ .mnemonic = MNE_aaa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1…
141 …{ .mnemonic = MNE_aad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1…
142 …{ .mnemonic = MNE_aam, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1…
143 …{ .mnemonic = MNE_aas, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1…
144 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_…
145 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_…
146 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_…
147 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_…
148 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_…
149 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_…
[all …]
Dx86_64_dis.h141 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_…
142 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_…
143 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_…
144 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_…
145 …{ .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_…
146 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_…
147 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_…
148 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_…
149 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_…
150 …{ .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_…
[all …]
/third_party/libdrm/tests/ttmtest/src/
Dxf86dri.c121 xXF86DRIQueryVersionReply rep; local
131 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
137 *majorVersion = rep.majorVersion;
138 *minorVersion = rep.minorVersion;
139 *patchVersion = rep.patchVersion;
153 xXF86DRIQueryDirectRenderingCapableReply rep; local
164 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
170 *isCapable = rep.isCapable;
185 xXF86DRIOpenConnectionReply rep; local
196 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
[all …]
/third_party/mesa3d/src/glx/apple/
Dappledri.c156 xAppleDRIQueryVersionReply rep; local
166 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
172 *majorVersion = rep.majorVersion;
173 *minorVersion = rep.minorVersion;
174 *patchVersion = rep.patchVersion;
188 xAppleDRIQueryDirectRenderingCapableReply rep; local
199 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
205 *isCapable = rep.isCapable;
220 xAppleDRIAuthConnectionReply rep; local
231 rep.authenticated = 0;
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord.cc117 static void DumpNode(CordRep* rep, bool include_data, std::ostream* os,
139 static int Depth(const CordRep* rep) { in Depth() argument
140 if (rep->IsConcat()) { in Depth()
141 return rep->concat()->depth(); in Depth()
172 CordRepConcat* rep = new CordRepConcat(); in RawConcat() local
173 rep->tag = cord_internal::CONCAT; in RawConcat()
174 SetConcatChildren(rep, left, right); in RawConcat()
176 return rep; in RawConcat()
180 CordRep* rep = RawConcat(left, right); in Concat() local
181 if (rep != nullptr && !IsRootBalanced(rep)) { in Concat()
[all …]
/third_party/f2fs-tools/lib/
Dlibf2fs_zoned.c210 struct blk_zone_report *rep; in f2fs_report_zone() local
213 rep = malloc(sizeof(struct blk_zone_report) + sizeof(struct blk_zone)); in f2fs_report_zone()
214 if (!rep) { in f2fs_report_zone()
219 rep->sector = sector; in f2fs_report_zone()
220 rep->nr_zones = 1; in f2fs_report_zone()
221 ret = ioctl(c.devices[i].fd, BLKREPORTZONE, rep); in f2fs_report_zone()
228 *blkz = *(struct blk_zone *)(rep + 1); in f2fs_report_zone()
230 free(rep); in f2fs_report_zone()
239 struct blk_zone_report *rep; in f2fs_report_zones() local
247 rep = malloc(F2FS_REPORT_ZONES_BUFSZ); in f2fs_report_zones()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DReplaceableContextIterator.java37 this.rep=null; in ReplaceableContextIterator()
47 public void setText(Replaceable rep) { in setText() argument
48 this.rep=rep; in setText()
49 limit=contextLimit=rep.length(); in setText()
82 if(0<=lim && lim<=rep.length()) { in setLimit()
85 limit=rep.length(); in setLimit()
98 } else if(contextStart<=rep.length()) { in setContextLimits()
101 this.contextStart=rep.length(); in setContextLimits()
105 } else if(contextLimit<=rep.length()) { in setContextLimits()
108 this.contextLimit=rep.length(); in setContextLimits()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DReplaceableContextIterator.java38 this.rep=null; in ReplaceableContextIterator()
48 public void setText(Replaceable rep) { in setText() argument
49 this.rep=rep; in setText()
50 limit=contextLimit=rep.length(); in setText()
83 if(0<=lim && lim<=rep.length()) { in setLimit()
86 limit=rep.length(); in setLimit()
99 } else if(contextStart<=rep.length()) { in setContextLimits()
102 this.contextStart=rep.length(); in setContextLimits()
106 } else if(contextLimit<=rep.length()) { in setContextLimits()
109 this.contextLimit=rep.length(); in setContextLimits()
[all …]
/third_party/mesa3d/src/glx/
Ddri2.c225 xDRI2QueryVersionReply rep; in DRI2QueryVersion() local
237 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2QueryVersion()
242 *major = rep.majorVersion; in DRI2QueryVersion()
243 *minor = rep.minorVersion; in DRI2QueryVersion()
247 switch (rep.minorVersion) { in DRI2QueryVersion()
272 xDRI2ConnectReply rep; in DRI2Connect() local
296 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2Connect()
302 if (rep.driverNameLength == 0 && rep.deviceNameLength == 0) { in DRI2Connect()
308 *driverName = malloc(rep.driverNameLength + 1); in DRI2Connect()
311 ((rep.driverNameLength + 3) & ~3) + in DRI2Connect()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrl.c156 xnvCtrlQueryExtensionReply rep; in XNVCTRLQueryVersion() local
168 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLQueryVersion()
173 if (major) *major = rep.major; in XNVCTRLQueryVersion()
174 if (minor) *minor = rep.minor; in XNVCTRLQueryVersion()
186 xnvCtrlIsNvReply rep; in XNVCTRLIsNvScreen() local
200 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLIsNvScreen()
205 isnv = rep.isnv; in XNVCTRLIsNvScreen()
218 xnvCtrlQueryTargetCountReply rep; in XNVCTRLQueryTargetCount() local
231 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLQueryTargetCount()
236 if (value) *value = rep.count; in XNVCTRLQueryTargetCount()
[all …]
/third_party/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrl.c156 xnvCtrlQueryExtensionReply rep; in XNVCTRLQueryVersion() local
168 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLQueryVersion()
173 if (major) *major = rep.major; in XNVCTRLQueryVersion()
174 if (minor) *minor = rep.minor; in XNVCTRLQueryVersion()
186 xnvCtrlIsNvReply rep; in XNVCTRLIsNvScreen() local
200 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLIsNvScreen()
205 isnv = rep.isnv; in XNVCTRLIsNvScreen()
218 xnvCtrlQueryTargetCountReply rep; in XNVCTRLQueryTargetCount() local
231 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLQueryTargetCount()
236 if (value) *value = rep.count; in XNVCTRLQueryTargetCount()
[all …]
/third_party/mesa3d/src/glx/windows/
Dxwindowsdri.c112 xWindowsDRIQueryVersionReply rep; local
122 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
128 *majorVersion = rep.majorVersion;
129 *minorVersion = rep.minorVersion;
130 *patchVersion = rep.patchVersion;
144 xWindowsDRIQueryDirectRenderingCapableReply rep; local
155 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
161 *isCapable = rep.isCapable;
173 xWindowsDRIQueryDrawableReply rep; in XWindowsDRIQueryDrawable() local
186 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XWindowsDRIQueryDrawable()
[all …]
/third_party/ffmpeg/libavformat/
Ddashdec.c594 static int parse_manifest_segmenturlnode(AVFormatContext *s, struct representation *rep, in parse_manifest_segmenturlnode() argument
611 free_fragment(&rep->init_section); in parse_manifest_segmenturlnode()
612 rep->init_section = get_Fragment(range_val); in parse_manifest_segmenturlnode()
614 if (!rep->init_section) { in parse_manifest_segmenturlnode()
618 rep->init_section->url = get_content_url(baseurl_nodes, 4, in parse_manifest_segmenturlnode()
624 if (!rep->init_section->url) { in parse_manifest_segmenturlnode()
625 av_freep(&rep->init_section); in parse_manifest_segmenturlnode()
649 err = av_dynarray_add_nofree(&rep->fragments, &rep->n_fragments, seg); in parse_manifest_segmenturlnode()
660 static int parse_manifest_segmenttimeline(AVFormatContext *s, struct representation *rep, in parse_manifest_segmenttimeline() argument
691 err = av_dynarray_add_nofree(&rep->timelines, &rep->n_timelines, tml); in parse_manifest_segmenttimeline()
[all …]

12345678910>>...14