Home
last modified time | relevance | path

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

12345678910>>...65

/freebsd-14.2/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;
97 assert(Idx < Size);
101 if (Size < kMaxDictSize) in push_back()
102 this->DE[Size++] = DE; in push_back()
104 void clear() { Size = 0; } in clear()
105 bool empty() const { return Size == 0; } in empty()
106 size_t size() const { return Size; } in size()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp104 size_t Size = s.size(); in write() local
106 if (Size <= FixMax::String) in write()
128 if (Size <= UINT8_MAX) { in write()
144 if (Size <= FixMax::Array) { in writeArraySize()
149 if (Size <= UINT16_MAX) { in writeArraySize()
156 EW.write(Size); in writeArraySize()
160 if (Size <= FixMax::Map) { in writeMapSize()
165 if (Size <= UINT16_MAX) { in writeMapSize()
172 EW.write(Size); in writeMapSize()
178 switch (Size) { in writeExt()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map_linux.cpp68 reportMapError(errno == ENOMEM ? Size : 0); in mmapWrapper()
82 void *P = mmapWrapper(Addr, Size, Name, Flags); in mapImpl()
87 MapCapacity = Size; in mapImpl()
91 void MemMapLinux::unmapImpl(uptr Addr, uptr Size) { in unmapImpl() argument
94 if (Size == MapCapacity) { in unmapImpl()
100 MapBase = Addr + Size; in unmapImpl()
101 MapCapacity -= Size; in unmapImpl()
105 reportUnmapError(Addr, Size); in unmapImpl()
110 void *P = mmapWrapper(Addr, Size, Name, Flags); in remapImpl()
119 reportProtectError(Addr, Size, Prot); in setMemoryPermissionImpl()
[all …]
H A Dmem_map.cpp15 bool MemMapDefault::mapImpl(uptr Addr, uptr Size, const char *Name, in mapImpl() argument
23 Capacity = Size; in mapImpl()
27 void MemMapDefault::unmapImpl(uptr Addr, uptr Size) { in unmapImpl() argument
28 if (Size == Capacity) { in unmapImpl()
32 Base = Addr + Size; in unmapImpl()
35 Capacity -= Size; in unmapImpl()
41 bool MemMapDefault::remapImpl(uptr Addr, uptr Size, const char *Name, in remapImpl() argument
50 void MemMapDefault::releaseAndZeroPagesToOSImpl(uptr From, uptr Size) { in releaseAndZeroPagesToOSImpl() argument
57 return ::scudo::setMemoryPermission(Addr, Size, Flags); in setMemoryPermissionImpl()
72 Capacity = Size; in createImpl()
[all …]
H A Dmem_map_base.h26 bool map(uptr Addr, uptr Size, const char *Name, uptr Flags = 0) {
28 return invokeImpl(&Derived::mapImpl, Addr, Size, Name, Flags);
33 void unmap(uptr Addr, uptr Size) { in unmap() argument
36 invokeImpl(&Derived::unmapImpl, Addr, Size); in unmap()
50 void setMemoryPermission(uptr Addr, uptr Size, uptr Flags) { in setMemoryPermission() argument
59 void releasePagesToOS(uptr From, uptr Size) { in releasePagesToOS() argument
62 invokeImpl(&Derived::releasePagesToOSImpl, From, Size); in releasePagesToOS()
66 void releaseAndZeroPagesToOS(uptr From, uptr Size) { in releaseAndZeroPagesToOS() argument
69 invokeImpl(&Derived::releaseAndZeroPagesToOSImpl, From, Size); in releaseAndZeroPagesToOS()
109 MemMapT dispatch(uptr Addr, uptr Size) { in dispatch() argument
[all …]
H A Dmem_map_fuchsia.cpp24 uptr Size) { in dieOnError() argument
106 dieOnError(Status, "zx_vmo_create", Size); in mapImpl()
121 dieOnError(Status, "zx_vmar_map", Size); in mapImpl()
133 Size, nullptr, 0); in mapImpl()
138 WindowSize = Size; in mapImpl()
145 if (Size == WindowSize) { in unmapImpl()
166 WindowBase += Size; in unmapImpl()
167 WindowSize -= Size; in unmapImpl()
192 dieOnError(Status, "zx_vmar_map", Size); in remapImpl()
232 dieOnError(Status, "zx_vmar_map", Size); in createImpl()
[all …]
H A Dvector.h27 DCHECK_LT(I, Size);
31 DCHECK_LT(I, Size);
36 if (Size == capacity()) { in push_back()
43 DCHECK_GT(Size, 0); in back()
44 return Data[Size - 1]; in back()
47 DCHECK_GT(Size, 0); in pop_back()
48 Size--; in pop_back()
60 if (NewSize > Size) { in resize()
62 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size)); in resize()
64 Size = NewSize; in resize()
[all …]
H A Dquarantine.h24 uptr Size; member
28 void init(void *Ptr, uptr Size) { in init()
31 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. in init()
40 this->Size += Size; in push_back()
80 B->init(Ptr, Size); in enqueue()
84 addToSize(Size); in enqueue()
96 addToSize(B->Size); in enqueueBatch()
104 subFromSize(B->Size); in dequeueBatch()
137 TotalBytes += Batch.Size; in getStats()
161 atomic_uptr Size = {}; variable
[all …]
H A Dfuchsia.cpp36 uptr Size) { in dieOnError() argument
53 Size, &Data->Vmar, &Data->VmarBase); in allocateVmar()
56 dieOnError(Status, "zx_vmar_allocate", Size); in allocateVmar()
64 DCHECK_EQ(Size % getPageSizeCached(), 0); in map()
69 return allocateVmar(Size, Data, AllowNoMem); in map()
84 Status = _zx_vmo_set_size(Vmo, VmoSize + Size); in map()
95 dieOnError(Status, "zx_vmo_create", Size); in map()
113 dieOnError(Status, "zx_vmar_map", Size); in map()
139 Data->VmoSize += Size; in map()
159 dieOnError(Status, "zx_vmar_unmap", Size); in unmap()
[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, in checkForCallocOverflow()
54 return __builtin_umul_overflow(Size, N, in checkForCallocOverflow()
57 *Product = Size * N; in checkForCallocOverflow()
58 if (!Size) in checkForCallocOverflow()
60 return (*Product / Size) != N; in checkForCallocOverflow()
66 inline bool checkForPvallocOverflow(uptr Size, uptr PageSize) { in checkForPvallocOverflow() argument
67 return roundUp(Size, PageSize) < Size; in checkForPvallocOverflow()
H A Dsize_class_map.h26 static u16 getMaxCachedHint(uptr Size) { in getMaxCachedHint()
27 DCHECK_NE(Size, 0); in getMaxCachedHint()
98 Size -= Config::SizeDelta; in getClassIdBySize()
99 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
100 if (Size <= MidSize) in getClassIdBySize()
106 DCHECK_LE(Size, MaxSize); in getMaxCachedHint()
134 if (Size <= Config::Classes[i]) in computeClassId()
209 if (Size <= Config::Classes[0]) in getClassIdBySize()
211 Size -= Config::SizeDelta; in getClassIdBySize()
212 DCHECK_LE(Size, MaxSize); in getClassIdBySize()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/include/orc_rt/
H A Dc_api.h72 size_t Size; member
83 R->Size = 0; in orc_rt_CWrapperFunctionResultInit()
94 R.Size = Size; in orc_rt_CWrapperFunctionResultAllocate()
97 if (Size > sizeof(R.Data.Value)) in orc_rt_CWrapperFunctionResultAllocate()
108 R.Size = Size; in orc_rt_CreateCWrapperFunctionResultFromRange()
109 if (R.Size > sizeof(R.Data.Value)) { in orc_rt_CreateCWrapperFunctionResultFromRange()
110 char *Tmp = (char *)malloc(Size); in orc_rt_CreateCWrapperFunctionResultFromRange()
111 memcpy(Tmp, Data, Size); in orc_rt_CreateCWrapperFunctionResultFromRange()
114 memcpy(R.Data.Value, Data, Size); in orc_rt_CreateCWrapperFunctionResultFromRange()
141 R.Size = 0; in orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
[all …]
/freebsd-14.2/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()
110 if (Size + sizeof(T) > Bytes.size()) in parseImmediate()
114 Size += sizeof(T); in parseImmediate()
129 Size = 0; in onSymbolStart()
165 Size = 0; in getInstruction()
166 int Opc = nextByte(Bytes, Size); in getInstruction()
224 uint64_t PrevSize = Size; in getInstruction()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpStack.cpp36 void *InterpStack::grow(size_t Size) { in grow() argument
51 Chunk->End += Size; in grow()
52 StackSize += Size; in grow()
56 void *InterpStack::peekData(size_t Size) const { in peekData()
60 while (Size > Ptr->size()) { in peekData()
61 Size -= Ptr->size(); in peekData()
69 void InterpStack::shrink(size_t Size) { in shrink() argument
72 while (Size > Chunk->size()) { in shrink()
73 Size -= Chunk->size(); in shrink()
83 Chunk->End -= Size; in shrink()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp43 if (Size <= 4) Res = 16; in VarAndRedzoneSize()
44 else if (Size <= 16) Res = 32; in VarAndRedzoneSize()
45 else if (Size <= 128) Res = Size + 32; in VarAndRedzoneSize()
46 else if (Size <= 512) Res = Size + 64; in VarAndRedzoneSize()
47 else if (Size <= 4096) Res = Size + 128; in VarAndRedzoneSize()
48 else Res = Size + 256; in VarAndRedzoneSize()
76 uint64_t Size = Vars[i].Size; in ComputeASanStackFrameLayout() local
80 assert(Size > 0); in ComputeASanStackFrameLayout()
126 if (Var.Size % Granularity) in GetShadowBytes()
127 SB.push_back(Var.Size % Granularity); in GetShadowBytes()
[all …]
/freebsd-14.2/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()
103 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition()
106 UpdatePosition(Scanned, Size - (Scanned - Ptr)); in ComputePosition()
108 UpdatePosition(Ptr, Size); in ComputePosition()
111 Scanned = Ptr + Size; in ComputePosition()
129 ComputePosition(Ptr, Size); in write_impl()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp106 adjustBranch(Size, Fixup, Value, Ctx); in fixup_call()
225 ldi::fixup(Size, Fixup, Value, Ctx); in lo8()
231 ldi::fixup(Size, Fixup, Value, Ctx); in hi8()
237 ldi::fixup(Size, Fixup, Value, Ctx); in hh8()
243 ldi::fixup(Size, Fixup, Value, Ctx); in ms8()
275 adjust::ldi::lo8(Size, Fixup, Value, Ctx); in adjustFixupValue()
280 adjust::ldi::lo8(Size, Fixup, Value, Ctx); in adjustFixupValue()
283 adjust::ldi::hi8(Size, Fixup, Value, Ctx); in adjustFixupValue()
288 adjust::ldi::hi8(Size, Fixup, Value, Ctx); in adjustFixupValue()
295 adjust::ldi::hh8(Size, Fixup, Value, Ctx); in adjustFixupValue()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp35 Size = 0; in initSize()
39 Size = 2; in initSize()
46 Size = 1; in initSize()
51 Size = 4; in initSize()
81 support::endian::write32le(Buf, Size); in write()
161 Size = alignTo(Size, Alignment); in finalizeStringTable()
162 P->second = Size; in finalizeStringTable()
164 Size += S.size(); in finalizeStringTable()
166 ++Size; in finalizeStringTable()
172 Size = alignTo(Size, 4); // Pad to multiple of 4. in finalizeStringTable()
[all …]

12345678910>>...65