Home
last modified time | relevance | path

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

12345678910>>...17

/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_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 …]
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 …]
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_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_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_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 …]
/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/f2fs-tools/lib/
Dlibf2fs_zoned.c208 struct blk_zone_report rep; in f2fs_report_zone() member
210 } *rep; in f2fs_report_zone() local
213 static_assert(sizeof(*rep) == sizeof(rep->rep) + sizeof(rep->zone), ""); in f2fs_report_zone()
215 rep = calloc(1, sizeof(*rep)); in f2fs_report_zone()
216 if (!rep) { in f2fs_report_zone()
221 rep->rep = (struct blk_zone_report){ in f2fs_report_zone()
225 ret = ioctl(c.devices[i].fd, BLKREPORTZONE, rep); in f2fs_report_zone()
232 *blkzone = rep->zone; in f2fs_report_zone()
234 free(rep); in f2fs_report_zone()
243 struct blk_zone_report *rep; in f2fs_report_zones() local
[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/node/deps/v8/src/codegen/
Dmachine-type.h240 static MachineType TypeForRepresentation(const MachineRepresentation& rep,
242 switch (rep) {
320 V8_INLINE size_t hash_value(MachineRepresentation rep) { in hash_value() argument
321 return static_cast<size_t>(rep); in hash_value()
330 MachineRepresentation rep);
334 inline bool IsIntegral(MachineRepresentation rep) { in IsIntegral() argument
335 return rep >= MachineRepresentation::kWord8 && in IsIntegral()
336 rep <= MachineRepresentation::kWord64; in IsIntegral()
339 inline bool IsFloatingPoint(MachineRepresentation rep) { in IsFloatingPoint() argument
340 return rep >= MachineRepresentation::kFirstFPRepresentation; in IsFloatingPoint()
[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/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/node/deps/v8/src/compiler/backend/
Dmid-tier-register-allocator.cc189 uintptr_t ToBit(MachineRepresentation rep) const { in ToBit()
191 rep != MachineRepresentation::kSimd128) { in ToBit()
194 DCHECK_EQ(rep, MachineRepresentation::kSimd128); in ToBit()
296 MachineRepresentation rep, int instr_index,
301 MachineRepresentation rep, int instr_index,
305 MachineRepresentation rep, int instr_index,
307 void DefineAsPhi(int virtual_register, MachineRepresentation rep,
377 MachineRepresentation rep() const { return rep_; } in rep() function in v8::internal::compiler::VirtualRegisterData
492 void Initialize(int virtual_register, MachineRepresentation rep,
525 MachineRepresentation rep, in Initialize() argument
[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/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/ffmpeg/libavformat/
Ddashdec.c596 static int parse_manifest_segmenturlnode(AVFormatContext *s, struct representation *rep, in parse_manifest_segmenturlnode() argument
613 free_fragment(&rep->init_section); in parse_manifest_segmenturlnode()
614 rep->init_section = get_Fragment(range_val); in parse_manifest_segmenturlnode()
616 if (!rep->init_section) { in parse_manifest_segmenturlnode()
620 rep->init_section->url = get_content_url(baseurl_nodes, 4, in parse_manifest_segmenturlnode()
626 if (!rep->init_section->url) { in parse_manifest_segmenturlnode()
627 av_freep(&rep->init_section); in parse_manifest_segmenturlnode()
651 err = av_dynarray_add_nofree(&rep->fragments, &rep->n_fragments, seg); in parse_manifest_segmenturlnode()
662 static int parse_manifest_segmenttimeline(AVFormatContext *s, struct representation *rep, in parse_manifest_segmenttimeline() argument
693 err = av_dynarray_add_nofree(&rep->timelines, &rep->n_timelines, tml); in parse_manifest_segmenttimeline()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
Dstatus.h603 static void UnrefNonInlined(uintptr_t rep);
604 static void Ref(uintptr_t rep);
605 static void Unref(uintptr_t rep);
629 static bool IsInlined(uintptr_t rep);
633 static bool IsMovedFrom(uintptr_t rep);
639 static absl::StatusCode InlinedRepToCode(uintptr_t rep);
831 inline bool Status::IsInlined(uintptr_t rep) { return (rep & 1) == 0; } in IsInlined() argument
833 inline bool Status::IsMovedFrom(uintptr_t rep) { in IsMovedFrom() argument
834 return IsInlined(rep) && (rep & 2) != 0; in IsMovedFrom()
845 inline absl::StatusCode Status::InlinedRepToCode(uintptr_t rep) { in InlinedRepToCode() argument
[all …]

12345678910>>...17