/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | allocator_common.h | 24 Count = N; in setFromArray() 25 memcpy(Batch, Array, sizeof(Batch[0]) * Count); in setFromArray() 28 DCHECK_LE(N, MaxNumCached - Count); in appendFromArray() 29 memcpy(Batch + Count, Array, sizeof(Batch[0]) * N); in appendFromArray() 31 Count = static_cast<u16>(Count + N); in appendFromArray() 34 DCHECK_LE(N, MaxNumCached - Count); in appendFromTransferBatch() 35 DCHECK_GE(B->Count, N); in appendFromTransferBatch() 37 memcpy(Batch + Count, B->Batch + (B->Count - N), sizeof(Batch[0]) * N); in appendFromTransferBatch() 39 Count = static_cast<u16>(Count + N); in appendFromTransferBatch() 40 B->Count = static_cast<u16>(B->Count - N); in appendFromTransferBatch() [all …]
|
H A D | local_cache.h | 43 if (C->Count == 0) { in appendFromTransferBatch() 48 DCHECK_GT(C->Count, 0); in add() 51 // Count, while Chunks might be further off (depending on Count). That keeps in add() 54 CompactPtrT CompactP = C->Chunks[--C->Count]; in copyToArray() 65 const bool NeedToDrainCache = C->Count == C->MaxCount; 70 C->Chunks[C->Count++] = 80 if (PerClassArray[I].Count) 90 while (PerClassArray[I].Count > 0) 93 while (PerClassArray[BatchClassId].Count > 68 u16 Count; global() member 210 u16 Count; alignas() local 261 const u16 Count = Min(static_cast<u16>(C->MaxCount / 2), C->Count); drain() local [all...] |
H A D | quarantine.h | 25 u32 Count; member 29 Count = 1; in init() 38 DCHECK_LT(Count, MaxCount); in push_back() 39 Batch[Count++] = Ptr; in push_back() 44 return Count + From->Count <= MaxCount; in canMerge() 48 DCHECK_LE(Count + From->Count, MaxCount); in merge() 51 for (uptr I = 0; I < From->Count; ++I) in merge() 52 Batch[Count + I] = From->Batch[I]; in merge() 53 Count += From->Count; in merge() 56 From->Count = 0; in merge() [all …]
|
/freebsd/sys/contrib/dev/acpica/compiler/ |
H A D | aslprepkg.c | 178 UINT32 Count); 184 UINT32 Count, 196 UINT32 Count, 229 UINT32 Count; in ApCheckPackage() local 240 Count = (UINT32) Op->Asl.Value.Integer; in ApCheckPackage() 249 if (!Count) in ApCheckPackage() 297 if (Count < ExpectedCount) in ApCheckPackage() 301 else if (Count > ExpectedCount) in ApCheckPackage() 304 Count, ExpectedCount); in ApCheckPackage() 319 for (i = 0; i < Count; i++) in ApCheckPackage() [all …]
|
H A D | dtfield.c | 181 UINT32 *Count); 317 UINT32 Count; in DtCompileUnicode() local 325 Count = strlen (AsciiString) + 1; in DtCompileUnicode() 329 for (i = 0; i < Count; i++) in DtCompileUnicode() 495 UINT32 *Count) in DtNormalizeBuffer() argument 541 *Count = BufferCount + 1; in DtNormalizeBuffer() 571 UINT32 Count; in DtCompileBuffer() local 577 StringValue = DtNormalizeBuffer (StringValue, &Count); in DtCompileBuffer() 579 if (Count != ByteLength) in DtCompileBuffer() 583 Count, ByteLength); in DtCompileBuffer() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | LEB128.h | 26 unsigned Count = 0; variable 33 Count++; 34 if (More || Count < PadTo) 40 if (Count < PadTo) { 42 for (; Count < PadTo - 1; ++Count) 45 Count++; 47 return Count; 54 unsigned Count = 0; variable 62 Count++; 63 if (More || Count < PadTo) [all …]
|
/freebsd/sys/contrib/dev/acpica/components/namespace/ |
H A D | nsprepkg.c | 169 UINT32 Count); 185 UINT32 Count); 213 UINT32 Count; in AcpiNsCheckPackage() local 227 ReturnObject->Package.Count)); in AcpiNsCheckPackage() 238 Count = ReturnObject->Package.Count; in AcpiNsCheckPackage() 244 if (!Count) in AcpiNsCheckPackage() 267 Status = AcpiNsCustomPackage (Info, Elements, Count); in AcpiNsCheckPackage() 278 if (Count < ExpectedCount) in AcpiNsCheckPackage() 282 else if (Count > ExpectedCount) in AcpiNsCheckPackage() 287 Info->FullPathname, Count, ExpectedCount)); in AcpiNsCheckPackage() [all …]
|
H A D | nsrepair2.c | 247 UINT32 Count, 551 for (i = 0; i < ReturnObject->Package.Count; i++) in AcpiNsRepair_CID() 615 OuterElementCount = ReturnObject->Package.Count - 1; in AcpiNsRepair_CST() 622 if ((*OuterElements)->Package.Count == 0) in AcpiNsRepair_CST() 795 ElementCount = PackageObject->Package.Count; in AcpiNsRepair_PRT() 806 if (SubPackage->Package.Count < 4) in AcpiNsRepair_PRT() 886 OuterElementCount = ReturnObject->Package.Count; in AcpiNsRepair_PSS() 1009 OuterElementCount = ReturnObject->Package.Count; in AcpiNsCheckSortedList() 1037 if ((*OuterElements)->Package.Count < ExpectedCount) in AcpiNsCheckSortedList() 1099 UINT32 Count, in AcpiNsSortList() argument [all …]
|
/freebsd/sys/contrib/dev/acpica/components/utilities/ |
H A D | utbuffer.c | 181 UINT32 Count, in AcpiUtDumpBuffer() argument 199 if ((Count < 4) || (Count & 0x01)) in AcpiUtDumpBuffer() 206 while (i < Count) in AcpiUtDumpBuffer() 219 if (i + j >= Count) in AcpiUtDumpBuffer() 270 if (i + j >= Count) in AcpiUtDumpBuffer() 329 UINT32 Count, in AcpiUtDebugDumpBuffer() argument 342 AcpiUtDumpBuffer (Buffer, Count, Display, 0); in AcpiUtDebugDumpBuffer() 371 UINT32 Count, in AcpiUtDumpBufferToFile() argument 387 if ((Count < 4) || (Count & 0x01)) in AcpiUtDumpBufferToFile() 394 while (i < Count) in AcpiUtDumpBufferToFile() [all …]
|
H A D | utids.c | 373 UINT32 Count; in AcpiUtExecute_CID() local 398 Count = ObjDesc->Package.Count; in AcpiUtExecute_CID() 403 Count = 1; in AcpiUtExecute_CID() 408 for (i = 0; i < Count; i++) in AcpiUtExecute_CID() 438 (Count * sizeof (ACPI_PNP_DEVICE_ID)) + in AcpiUtExecute_CID() 451 ((ACPI_SIZE) Count * sizeof (ACPI_PNP_DEVICE_ID)); in AcpiUtExecute_CID() 455 for (i = 0; i < Count; i++) in AcpiUtExecute_CID() 480 CidList->Count = Count; in AcpiUtExecute_CID() 520 UINT32 Count; in AcpiUtExecute_CLS() local 541 Count = ObjDesc->Package.Count; in AcpiUtExecute_CLS() [all …]
|
H A D | utmath.c | 249 UINT32 Count, in AcpiUtShortShiftLeft() argument 260 if ((Count & 63) >= 32) in AcpiUtShortShiftLeft() 264 Count = (Count & 63) - 32; in AcpiUtShortShiftLeft() 267 OperandOvl.Part.Lo, Count); in AcpiUtShortShiftLeft() 294 UINT32 Count, in AcpiUtShortShiftRight() argument 305 if ((Count & 63) >= 32) in AcpiUtShortShiftRight() 309 Count = (Count & 63) - 32; in AcpiUtShortShiftRight() 312 OperandOvl.Part.Lo, Count); in AcpiUtShortShiftRight() 368 UINT32 Count, in AcpiUtShortShiftLeft() argument 379 *OutResult = Operand << Count; in AcpiUtShortShiftLeft() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 324 const uint64_t Count; member 336 PromotionCandidate(Function *F, uint64_t C) : TargetFunction(F), Count(C) {} in PromotionCandidate() 428 uint64_t Count = ValueDataRef[I].Count; in getPromotionCandidatesForCallSite() local 429 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite() 432 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getPromotionCandidatesForCallSite() 486 << NV("Count", Count) << ": " << Reason; in getPromotionCandidatesForCallSite() 491 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getPromotionCandidatesForCallSite() 492 TotalCount -= Count; in getPromotionCandidatesForCallSite() 560 GUIDCountsMap[VTableVal] = V.Count; in computeVTableInfos() 588 Candidate.VTableGUIDAndCounts[VTableVal] = V.Count; in computeVTableInfos() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | ProfileSummaryBuilder.cpp | 123 uint64_t Count = I.second.getSamples(); in addRecord() local 124 addCount(Count); in addRecord() 141 uint64_t CurrSum = 0, Count = 0; in computeDetailedSummary() local 153 Count = Iter->first; in computeDetailedSummary() 155 CurrSum += (Count * Freq); in computeDetailedSummary() 160 ProfileSummaryEntry PSE = {Cutoff, Count, CountsSeen}; in computeDetailedSummary() 226 void InstrProfSummaryBuilder::addEntryCount(uint64_t Count) { in getSummary() 227 assert(Count <= getInstrMaxCountValue() && 228 "Count value should be less than the max count value."); in addEntryCount() argument 230 addCount(Count); in addEntryCount() 237 addInternalCount(uint64_t Count) addInternalCount() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | IndirectCallPromotionAnalysis.cpp | 52 bool ICallPromotionAnalysis::isPromotionProfitable(uint64_t Count, in isPromotionProfitable() argument 55 return Count * 100 >= ICPRemainingPercentThreshold * RemainingCount && in isPromotionProfitable() 56 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable() 70 uint64_t Count = ValueDataArray[I].Count; in getProfitablePromotionCandidates() local 71 assert(Count <= RemainingCount); in getProfitablePromotionCandidates() 72 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getProfitablePromotionCandidates() 75 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates() 79 RemainingCount -= Count; in getProfitablePromotionCandidates()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ProfileSummaryInfo.h | 47 // Count thresholds to answer isHotCount and isColdCount queries. 199 auto Count = BFI->getBlockProfileCount(BB); in isHotBlock() local 200 return Count && isHotCount(*Count); in isHotBlock() 206 auto Count = BFI->getBlockProfileCount(BB); in isColdBlock() local 207 return Count && isColdCount(*Count); in isColdBlock() 212 auto Count = BFI->getProfileCountFromFreq(BlockFreq); in isColdBlock() local 213 return Count && isColdCount(*Count); in isColdBlock() 307 auto Count = BFI->getBlockProfileCount(BB); isHotOrColdBlockNthPercentile() local 318 auto Count = BFI->getProfileCountFromFreq(BlockFreq.getFrequency()); isHotOrColdBlockNthPercentile() local [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | ProfileCommon.h | 65 inline void addCount(uint64_t Count); 82 inline void addEntryCount(uint64_t Count); 83 inline void addInternalCount(uint64_t Count); 106 void ProfileSummaryBuilder::addCount(uint64_t Count) { 107 TotalCount += Count; 108 if (Count > MaxCount) 109 MaxCount = Count; 111 CountFrequencies[Count]++; 98 addCount(uint64_t Count) addCount() argument
|
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | sallist.h | 65 bit32 Count; member 101 (pList)->Count = 0; \ 107 (pList)->Count = 0; \ 180 (pList)->Count ++; \ 189 (pList)->Count ++; \ 230 (pList)->Count ++; \ 271 (pList)->Count --; \ 278 (pList)->Count --; \ 358 #define saLlistGetCount(pList) ((pList)->Count) 360 #define saLlistIOGetCount(pList) ((pList)->Count)
|
/freebsd/sys/contrib/dev/acpica/include/ |
H A D | acclib.h | 242 ACPI_SIZE Count); 248 ACPI_SIZE Count); 254 ACPI_SIZE Count); 277 ACPI_SIZE Count); 283 ACPI_SIZE Count); 289 ACPI_SIZE Count); 295 ACPI_SIZE Count); 395 ACPI_SIZE Count, 402 ACPI_SIZE Count,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopUnrollPass.cpp | 206 UP.Count = 0; in gatherUnrollingPreferences() 270 UP.Count = *UserCount; in gatherUnrollingPreferences() 735 return static_cast<uint64_t>(LS - UP.BEInsns) * UP.Count + UP.BEInsns; in getUnrolledLoopSize() 770 unsigned Count = in unrollCountPragmaValue() local 772 assert(Count >= 1 && "Unroll count must be positive."); in unrollCountPragmaValue() 773 return Count; in unrollCountPragmaValue() 879 unsigned count = UP.Count; in shouldPartialUnroll() 950 UP.Count = 1; in computeUnrollCount() 959 UP.Count = *UnrollFactor; in computeUnrollCount() 980 UP.Count = 0; in computeUnrollCount() [all …]
|
H A D | LoopUnrollAndJamPass.cpp | 133 unsigned Count = in unrollAndJamCountPragmaValue() local 135 assert(Count >= 1 && "Unroll count must be positive."); in unrollAndJamCountPragmaValue() 136 return Count; in unrollAndJamCountPragmaValue() 146 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + UP.BEInsns; in getUnrollAndJammedLoopSize() 177 UP.Count = 0; in computeUnrollAndJamCount() 184 UP.Count = UnrollAndJamCount; in computeUnrollAndJamCount() 196 UP.Count = PragmaCount; in computeUnrollAndJamCount() 219 UP.Count = 0; in computeUnrollAndJamCount() 227 while (UP.Count != 0 && getUnrollAndJammedLoopSize(InnerLoopSize, UP) >= in computeUnrollAndJamCount() 229 UP.Count--; in computeUnrollAndJamCount() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | xray-graph.h | 43 int64_t Count; member 168 return {A.Count + B.Count, A.Min + B.Min, A.Median + B.Median, 177 return {A.Count - B.Count, A.Min - B.Min, A.Median - B.Median, 186 return {static_cast<int64_t>(A.Count / B), 198 return {static_cast<int64_t>(A.Count * B), 216 return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median, 224 return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SampleProfileLoaderBaseUtil.cpp | 86 unsigned &Count = SampleCoverage[FS][Loc]; in markSamplesUsed() local 87 bool FirstTime = (++Count == 1); in markSamplesUsed() 103 unsigned Count = (I != SampleCoverage.end()) ? I->second.size() : 0; in countUsedRecords() local 112 Count += countUsedRecords(CalleeSamples, PSI); in countUsedRecords() 115 return Count; in countUsedRecords() 124 unsigned Count = FS->getBodySamples().size(); in countBodyRecords() local 131 Count += countBodyRecords(CalleeSamples, PSI); in countBodyRecords() 134 return Count; in countBodyRecords()
|
/freebsd/contrib/bearssl/T0/ |
H A D | WordBuilder.cs | 77 if (jumpToLast || code[code.Count - 1].MayFallThrough) { in Build() 80 Word w = new WordInterpreted(TC, name, locals.Count, in Build() 141 CSPush(code.Count); in CSPushOrig() 150 CSPush(-code.Count - 1); in CSPushDest() 278 locals[lname] = locals.Count; in DefLocal() 341 code[x].ResolveJump(code.Count - x - 1); in Then() 361 Add(new OpcodeJumpUncond(x - code.Count - 1)); in Again() 372 Add(new OpcodeJumpIf(x - code.Count - 1)); in AgainIf() 383 Add(new OpcodeJumpIfNot(x - code.Count - 1)); in AgainIfNot()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_buffer_queue.cpp | 30 BufferQueue::ControlBlock *allocControlBlock(size_t Size, size_t Count) { in allocControlBlock() argument 32 allocateBuffer((sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in allocControlBlock() 38 size_t Count) { in deallocControlBlock() argument 40 (sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in deallocControlBlock() 43 void decRefCount(BufferQueue::ControlBlock *C, size_t Size, size_t Count) { in decRefCount() argument 47 deallocControlBlock(C, Size, Count); in decRefCount() 133 Buf.Count = BufferCount; in init() 192 decRefCount(Buf.BackingStore, Buf.Size, Buf.Count); in releaseBuffer() 193 decRefCount(Buf.ExtentsBackingStore, kExtentsSize, Buf.Count); in releaseBuffer() 210 decRefCount(Buf.BackingStore, Buf.Size, Buf.Count); in releaseBuffer() [all …]
|
/freebsd/sys/contrib/dev/acpica/components/resources/ |
H A D | rsdump.c | 249 UINT32 Count = 0; in AcpiRsDumpResourceList() local 267 AcpiOsPrintf ("\n[%02X] ", Count); in AcpiRsDumpResourceList() 268 Count++; in AcpiRsDumpResourceList() 336 UINT8 Count; in AcpiRsDumpIrqList() local 353 for (Count = 0; PrtElement->Length; Count++) in AcpiRsDumpIrqList() 355 AcpiOsPrintf ("\n[%02X] PCI IRQ Routing Table Package\n", Count); in AcpiRsDumpIrqList() 385 UINT8 Count; in AcpiRsDumpDescriptor() local 390 Count = Table->Offset; in AcpiRsDumpDescriptor() 392 while (Count) in AcpiRsDumpDescriptor() 573 Count--; in AcpiRsDumpDescriptor()
|