Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 25 of 1388) sorted by relevance

12345678910>>...56

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerMutate.cpp82 if (Size == 0) in Mutate_CustomCrossOver()
111 if (Size > MaxSize || Size == 0) return 0; in Mutate_ShuffleBytes()
117 return Size; in Mutate_ShuffleBytes()
166 return Size; in Mutate_ChangeByte()
174 return Size; in Mutate_ChangeBit()
202 return Size; in ApplyDictionaryEntry()
288 Size = ApplyDictionaryEntry(Data, Size, MaxSize, DE); in Mutate_AddWordFromTORC()
308 Size = ApplyDictionaryEntry(Data, Size, MaxSize, DE); in AddWordFromDictionary()
358 if (Size > MaxSize || Size == 0) return 0; in Mutate_CopyPart()
362 return CopyPartOf(Data, Size, Data, Size); in Mutate_CopyPart()
[all …]
H A DFuzzerMutate.h35 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize);
41 size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize);
43 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize);
47 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize);
49 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize);
51 size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize);
70 size_t Mutate_CrossOver(uint8_t *Data, size_t Size, size_t MaxSize);
74 size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize);
79 size_t MutateWithMask(uint8_t *Data, size_t Size, size_t MaxSize,
84 size_t DefaultMutate(uint8_t *Data, size_t Size, size_t MaxSize);
[all …]
H A DFuzzerDictionary.h33 Size = static_cast<uint8_t>(S); in Set()
37 return Size == w.Size && 0 == memcmp(Data, w.Data, Size);
42 uint8_t size() const { return Size; } in size()
45 uint8_t Size = 0;
94 assert(Idx < Size);
98 if (Size < kMaxDictSize) in push_back()
99 this->DE[Size++] = DE; in push_back()
101 void clear() { Size = 0; } in clear()
102 bool empty() const { return Size == 0; } in empty()
103 size_t size() const { return Size; } in size()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp102 size_t Size = s.size(); in write() local
104 if (Size <= FixMax::String) in write()
126 if (Size <= UINT8_MAX) { in write()
142 if (Size <= FixMax::Array) { in writeArraySize()
147 if (Size <= UINT16_MAX) { in writeArraySize()
154 EW.write(Size); in writeArraySize()
158 if (Size <= FixMax::Map) { in writeMapSize()
163 if (Size <= UINT16_MAX) { in writeMapSize()
170 EW.write(Size); in writeMapSize()
176 switch (Size) { in writeExt()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp77 if (Size >= Bytes.size()) in nextByte()
79 auto V = Bytes[Size]; in nextByte()
80 Size++; in nextByte()
95 Size += N; in nextLEB()
113 Bytes.data() + Size); in parseImmediate()
114 Size += sizeof(T); in parseImmediate()
127 Size = 0; in onSymbolStart()
163 Size = 0; in getInstruction()
164 int Opc = nextByte(Bytes, Size); in getInstruction()
222 uint64_t PrevSize = Size; in getInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/orc/
H A Dc_api.h75 size_t Size; member
86 R->Size = 0; in __orc_rt_CWrapperFunctionResultInit()
97 R->Size = Size; in __orc_rt_CWrapperFunctionResultAllocate()
98 if (Size <= sizeof(R->Data.Value)) in __orc_rt_CWrapperFunctionResultAllocate()
111 R.Size = Size; in __orc_rt_CreateCWrapperFunctionResultFromRange()
112 if (R.Size > sizeof(R.Data.Value)) { in __orc_rt_CreateCWrapperFunctionResultFromRange()
113 char *Tmp = (char *)malloc(Size); in __orc_rt_CreateCWrapperFunctionResultFromRange()
114 memcpy(Tmp, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange()
117 memcpy(R.Data.Value, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange()
144 R.Size = 0; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp46 assert((Size % State.PageSize) == 0); in map()
47 void *Ptr = mmap(nullptr, Size, PROT_READ | PROT_WRITE, in map()
50 MaybeSetMappingName(Ptr, Size, Name); in map()
56 assert((Size % State.PageSize) == 0); in unmap()
57 Check(munmap(Ptr, Size) == 0, in unmap()
62 assert((Size % State.PageSize) == 0); in reserveGuardedPool()
66 MaybeSetMappingName(Ptr, Size, kGwpAsanGuardPageName); in reserveGuardedPool()
77 assert((Size % State.PageSize) == 0); in allocateInGuardedPool()
80 MaybeSetMappingName(Ptr, Size, kGwpAsanAliveSlotName); in allocateInGuardedPool()
86 assert((Size % State.PageSize) == 0); in deallocateInGuardedPool()
[all …]
H A Dguarded_pool_allocator_fuchsia.cpp24 assert((Size % State.PageSize) == 0); in map()
26 zx_status_t Status = _zx_vmo_create(Size, 0, &Vmo); in map()
32 0, Vmo, 0, Size, &Addr); in map()
40 assert((Size % State.PageSize) == 0); in unmap()
46 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool() argument
47 assert((Size % State.PageSize) == 0); in reserveGuardedPool()
52 Size, &GuardedPagePoolPlatformData.Vmar, &Addr); in reserveGuardedPool()
69 assert((Size % State.PageSize) == 0); in allocateInGuardedPool()
71 zx_status_t Status = _zx_vmo_create(Size, 0, &Vmo); in allocateInGuardedPool()
83 Offset, Vmo, 0, Size, &P); in allocateInGuardedPool()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dvector.h32 DCHECK_LT(I, Size);
36 DCHECK_LT(I, Size);
41 if (Size == capacity()) { in push_back()
48 DCHECK_GT(Size, 0); in back()
49 return Data[Size - 1]; in back()
52 DCHECK_GT(Size, 0); in pop_back()
53 Size--; in pop_back()
65 if (NewSize > Size) { in resize()
67 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size)); in resize()
69 Size = NewSize; in resize()
[all …]
H A Dquarantine.h23 uptr Size; member
27 void init(void *Ptr, uptr Size) { in init()
30 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. in init()
39 this->Size += Size; in push_back()
79 B->init(Ptr, Size); in enqueue()
83 addToSize(Size); in enqueue()
95 addToSize(B->Size); in enqueueBatch()
103 subFromSize(B->Size); in dequeueBatch()
136 TotalBytes += Batch.Size; in getStats()
160 atomic_uptr Size = {}; variable
[all …]
H A Dwrappers_c_checks.h33 inline bool checkAlignedAllocAlignmentAndSize(uptr Alignment, uptr Size) { in checkAlignedAllocAlignmentAndSize() argument
35 !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize()
48 inline bool checkForCallocOverflow(uptr Size, uptr N, uptr *Product) { in checkForCallocOverflow() argument
50 return __builtin_umull_overflow(Size, N, Product); in checkForCallocOverflow()
52 *Product = Size * N; in checkForCallocOverflow()
53 if (!Size) in checkForCallocOverflow()
55 return (*Product / Size) != N; in checkForCallocOverflow()
61 inline bool checkForPvallocOverflow(uptr Size, uptr PageSize) { in checkForPvallocOverflow() argument
62 return roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
H A Dfuchsia.cpp41 Size, &Data->Vmar, &Data->VmarBase); in allocateVmar()
44 dieOnMapUnmapError(Status == ZX_ERR_NO_MEMORY ? Size : 0); in allocateVmar()
50 void *map(void *Addr, uptr Size, const char *Name, uptr Flags, in map() argument
52 DCHECK_EQ(Size % getPageSizeCached(), 0); in map()
57 return allocateVmar(Size, Data, AllowNoMem); in map()
71 Status = _zx_vmo_set_size(Vmo, VmoSize + Size); in map()
74 dieOnMapUnmapError(Status == ZX_ERR_NO_MEMORY ? Size : 0); in map()
79 Status = _zx_vmo_create(Size, ZX_VMO_RESIZABLE, &Vmo); in map()
108 dieOnMapUnmapError(Status == ZX_ERR_NO_MEMORY ? Size : 0); in map()
112 Data->VmoSize += Size; in map()
[all …]
H A Dsize_class_map.h26 static u32 getMaxCachedHint(uptr Size) { in getMaxCachedHint()
27 DCHECK_NE(Size, 0); in getMaxCachedHint()
95 Size -= Config::SizeDelta; in getClassIdBySize()
96 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
97 if (Size <= MidSize) in getClassIdBySize()
103 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
131 if (Size <= Config::Classes[i]) in computeClassId()
206 if (Size <= Config::Classes[0]) in getClassIdBySize()
208 Size -= Config::SizeDelta; in getClassIdBySize()
209 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpStack.cpp29 void *InterpStack::grow(size_t Size) { in grow() argument
44 Chunk->End += Size; in grow()
45 StackSize += Size; in grow()
49 void *InterpStack::peek(size_t Size) { in peek() argument
53 while (Size > Ptr->size()) { in peek()
54 Size -= Ptr->size(); in peek()
62 void InterpStack::shrink(size_t Size) { in shrink() argument
65 while (Size > Chunk->size()) { in shrink()
66 Size -= Chunk->size(); in shrink()
76 Chunk->End -= Size; in shrink()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DRegisterEHFrames.cpp96 uint64_t Size = *reinterpret_cast<const uint32_t *>(CurCFIRecord); in walkAppleEHFrameSection() local
98 while (CurCFIRecord != End && Size != 0) { in walkAppleEHFrameSection()
100 if (Size == 0xffffffff) in walkAppleEHFrameSection()
103 Size += 4; in walkAppleEHFrameSection()
110 for (unsigned I = 0; I < Size; ++I) in walkAppleEHFrameSection()
119 CurCFIRecord += Size; in walkAppleEHFrameSection()
121 Size = *reinterpret_cast<const uint32_t *>(CurCFIRecord); in walkAppleEHFrameSection()
160 jitTargetAddressToPointer<const void *>(Addr), Size); in registerEHFrameWrapper()
165 jitTargetAddressToPointer<const void *>(Addr), Size); in deregisterEHFrameWrapper()
171 Data, Size, registerEHFrameWrapper) in llvm_orc_registerEHFrameSectionWrapper()
[all …]
/freebsd-13.1/sys/contrib/dev/acpica/components/utilities/
H A Duttrack.c181 ACPI_SIZE Size,
249 ACPI_SIZE Size, in AcpiUtAllocateAndTrack() argument
260 if (!Size) in AcpiUtAllocateAndTrack()
264 Size = 1; in AcpiUtAllocateAndTrack()
287 AcpiGbl_GlobalList->TotalSize += (UINT32) Size; in AcpiUtAllocateAndTrack()
318 ACPI_SIZE Size, in AcpiUtAllocateZeroedAndTrack() argument
329 if (!Size) in AcpiUtAllocateZeroedAndTrack()
333 Size = 1; in AcpiUtAllocateZeroedAndTrack()
337 Size + sizeof (ACPI_DEBUG_MEM_HEADER)); in AcpiUtAllocateZeroedAndTrack()
514 ACPI_SIZE Size, in AcpiUtTrackAllocation() argument
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_segmented_array.h171 uint64_t Size; variable
301 Size(0) {} in Array()
316 Size(O.Size) { in Array()
320 O.Size = 0; in Array()
333 Size = O.Size;
334 O.Size = 0;
378 ++Size; in AppendEmplace()
410 ++Size; in Append()
460 Elements = Elements > Size ? Size : Elements; in trim()
631 return Iterator<T>(Tail, Size, Size); in end()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray()
96 A.Size = 0; in SimpleArray()
103 Size = RHS.Size;
150 return Data[Size - 1]; in back()
180 Data[Size++] = Elem; in push_back()
185 assert(Size > n);
186 Size -= n;
191 Size = Sz; in setValues()
198 size_t Osz = Size; in append()
202 Size = J; in append()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp106 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
215 ldi::fixup(Size, Fixup, Value, Ctx); in lo8()
221 ldi::fixup(Size, Fixup, Value, Ctx); in hi8()
227 ldi::fixup(Size, Fixup, Value, Ctx); in hh8()
233 ldi::fixup(Size, Fixup, Value, Ctx); in ms8()
266 adjust::ldi::lo8(Size, Fixup, Value, Ctx); in adjustFixupValue()
271 adjust::ldi::lo8(Size, Fixup, Value, Ctx); in adjustFixupValue()
274 adjust::ldi::hi8(Size, Fixup, Value, Ctx); in adjustFixupValue()
279 adjust::ldi::hi8(Size, Fixup, Value, Ctx); in adjustFixupValue()
285 adjust::ldi::hh8(Size, Fixup, Value, Ctx); in adjustFixupValue()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp44 if (Size <= 4) Res = 16; in VarAndRedzoneSize()
45 else if (Size <= 16) Res = 32; in VarAndRedzoneSize()
46 else if (Size <= 128) Res = Size + 32; in VarAndRedzoneSize()
47 else if (Size <= 512) Res = Size + 64; in VarAndRedzoneSize()
48 else if (Size <= 4096) Res = Size + 128; in VarAndRedzoneSize()
49 else Res = Size + 256; in VarAndRedzoneSize()
77 size_t Size = Vars[i].Size; in ComputeASanStackFrameLayout() local
81 assert(Size > 0); in ComputeASanStackFrameLayout()
127 if (Var.Size % Granularity) in GetShadowBytes()
128 SB.push_back(Var.Size % Granularity); in GetShadowBytes()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp200 void *Allocate(uptr Size) { in Allocate()
324 const uptr NeededSize = RoundUpTo(Size ? Size : 1, MinAlignment) + in allocate()
364 reportOutOfMemory(Size); in allocate()
409 const bool BypassQuarantine = !Size || (Size > QuarantineChunksUpToSize); in quarantineOrDeallocateChunk()
718 if (Size == 0) { in scudoRealloc()
729 void *scudoValloc(uptr Size) { in scudoValloc() argument
734 void *scudoPvalloc(uptr Size) { in scudoPvalloc() argument
740 reportPvallocOverflow(Size); in scudoPvalloc()
743 Size = Size ? RoundUpTo(Size, PageSize) : PageSize; in scudoPvalloc()
797 return Size; in __sanitizer_get_estimated_allocated_size()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DFormattedStream.cpp26 void formatted_raw_ostream::UpdatePosition(const char *Ptr, size_t Size) { in UpdatePosition() argument
58 if (Size < BytesFromBuffer) { in UpdatePosition()
61 PartialUTF8Char.append(StringRef(Ptr, Size)); in UpdatePosition()
71 Size -= BytesFromBuffer; in UpdatePosition()
77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition()
100 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition()
103 UpdatePosition(Scanned, Size - (Scanned - Ptr)); in ComputePosition()
105 UpdatePosition(Ptr, Size); in ComputePosition()
108 Scanned = Ptr + Size; in ComputePosition()
126 ComputePosition(Ptr, Size); in write_impl()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyldChecker.h82 : ContentPtr(Content.data()), Size(Content.size()), in MemoryRegionInfo()
86 MemoryRegionInfo(uint64_t Size, JITTargetAddress TargetAddress) in MemoryRegionInfo() argument
87 : Size(Size), TargetAddress(TargetAddress) {} in MemoryRegionInfo()
91 assert(Size && "setContent/setZeroFill must be called first"); in isZeroFill()
97 assert(!ContentPtr && !Size && "Content/zero-fill already set"); in setContent()
99 Size = Content.size(); in setContent()
103 void setZeroFill(uint64_t Size) { in setZeroFill() argument
105 this->Size = Size; in setZeroFill()
111 return {ContentPtr, static_cast<size_t>(Size)}; in getContent()
117 return Size; in getZeroFillLength()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp35 Size = 0; in initSize()
39 Size = 2; in initSize()
45 Size = 1; in initSize()
50 Size = 4; in initSize()
80 support::endian::write32le(Buf, Size); in write()
160 Size = alignTo(Size, Alignment); in finalizeStringTable()
161 P->second = Size; in finalizeStringTable()
163 Size += S.size(); in finalizeStringTable()
165 ++Size; in finalizeStringTable()
171 Size = alignTo(Size, 4); // Pad to multiple of 4. in finalizeStringTable()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h46 if (Bytes.size() < Pos + Size) { in getPtrToData()
47 Bytes.resize(Pos + Size); in getPtrToData()
48 BytesUsed.resize(Pos + Size); in getPtrToData()
57 auto DataUsed = getPtrToData(Pos / 8, Size); in setLE()
58 for (unsigned I = 0; I != Size; ++I) { in setLE()
69 auto DataUsed = getPtrToData(Pos / 8, Size); in setBE()
70 for (unsigned I = 0; I != Size; ++I) { in setBE()
71 DataUsed.first[Size - I - 1] = Val >> (I * 8); in setBE()
72 assert(!DataUsed.second[Size - I - 1]); in setBE()
73 DataUsed.second[Size - I - 1] = 0xff; in setBE()
[all …]

12345678910>>...56