Home
last modified time | relevance | path

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

12345678910>>...87

/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp76 if (Size >= Bytes.size()) in nextByte()
78 auto V = Bytes[Size]; in nextByte()
79 Size++; in nextByte()
94 Size += N; in nextLEB()
112 Bytes.data() + Size); in parseImmediate()
113 Size += sizeof(T); in parseImmediate()
128 Size = 0; in onSymbolStart()
164 Size = 0; in getInstruction()
165 int Opc = nextByte(Bytes, Size); in getInstruction()
223 uint64_t PrevSize = Size; in getInstruction()
[all …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dcombined_test.cpp51 Size = scudo::roundUpTo(Size, MinAlignment); in checkMemoryTaggingMaybe()
164 memset(P, 0xaa, Size); in BasicTest()
209 memset(P, 0xaa, Size); in SCUDO_TYPED_TEST()
283 scudo::uptr Size = 16; in SCUDO_TYPED_TEST() local
286 memset(P, Marker, Size); in SCUDO_TYPED_TEST()
292 memset(reinterpret_cast<char *>(NewP) + Size, Marker, Size); in SCUDO_TYPED_TEST()
293 Size *= 2U; in SCUDO_TYPED_TEST()
309 while (Size > 1U) { in SCUDO_TYPED_TEST()
310 Size /= 2U; in SCUDO_TYPED_TEST()
661 if (Size < 8) in SCUDO_TYPED_TEST()
[all …]
H A Dwrappers_c_test.cpp46 void *P = malloc(Size); in TEST()
104 for (size_t Size = 1; Size <= 0x10000; Size <<= 1) { in TEST() local
167 P = malloc(Size); in TEST()
172 P = malloc(Size); in TEST()
175 memset(P, 0x42, Size); in TEST()
195 P = malloc(Size); in TEST()
254 P = pvalloc(Size); in TEST()
400 P = malloc(Size); in TEST()
407 P = malloc(Size); in TEST()
409 memset(P, 0x42, Size); in TEST()
[all …]
H A Dcommon_test.cpp21 uptr Size; in getResidentMemorySize() local
24 IFS >> Size; in getResidentMemorySize()
34 const uptr Size = 1ull << 30; in TEST() local
35 const uptr Threshold = Size >> 3; in TEST()
42 memset(P, 1, Size); in TEST()
48 memset(P, 1, Size); in TEST()
51 unmap(P, Size, 0, &Data); in TEST()
55 const uptr Size = 1ull << 20; in TEST() local
59 const ptrdiff_t N = Size / sizeof(*P); in TEST()
63 memset(P, 1, Size); in TEST()
[all …]
H A Dmap_test.cpp24 const scudo::uptr Size = 4 * scudo::getPageSizeCached(); in TEST() local
28 EXPECT_DEATH(memset(P, 0xaa, Size), ""); in TEST()
29 scudo::unmap(P, Size, UNMAP_ALL, &Data); in TEST()
33 const scudo::uptr Size = 4 * scudo::getPageSizeCached(); in TEST() local
42 scudo::unmap(P, Size, 0, nullptr); in TEST()
43 memset(P, 0xbb, Size); in TEST()
51 const scudo::uptr Size = 4 * PageSize; in TEST() local
59 memset(Q, 0xaa, Size); in TEST()
60 EXPECT_DEATH(memset(Q, 0xaa, Size + 1), ""); in TEST()
66 const scudo::uptr Size = 4 * PageSize; in TEST() local
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/
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 Dvector.h33 DCHECK_LT(I, Size);
37 DCHECK_LT(I, Size);
42 if (Size == capacity()) { in push_back()
49 DCHECK_GT(Size, 0); in back()
50 return Data[Size - 1]; in back()
53 DCHECK_GT(Size, 0); in pop_back()
54 Size--; in pop_back()
66 if (NewSize > Size) { in resize()
68 memset(&Data[Size], 0, sizeof(T) * (NewSize - Size)); in resize()
70 Size = NewSize; in resize()
[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 roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
H A Dfuchsia.cpp42 Size, &Data->Vmar, &Data->VmarBase); in allocateVmar()
45 dieOnMapUnmapError(Status == ZX_ERR_NO_MEMORY ? Size : 0); in allocateVmar()
51 void *map(void *Addr, uptr Size, const char *Name, uptr Flags, in map() argument
53 DCHECK_EQ(Size % getPageSizeCached(), 0); in map()
58 return allocateVmar(Size, Data, AllowNoMem); in map()
73 Status = _zx_vmo_set_size(Vmo, VmoSize + Size); in map()
81 Status = _zx_vmo_create(Size, ZX_VMO_RESIZABLE, &Vmo); in map()
102 dieOnMapUnmapError(Status == ZX_ERR_NO_MEMORY ? Size : 0); in map()
107 Status = _zx_vmar_op_range(Vmar, ZX_VMAR_OP_COMMIT, P, Size, in map()
128 Data->VmoSize += Size; in map()
[all …]
/openbsd/gnu/llvm/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) const { in peek()
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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutexset_test.cpp28 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
31 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
34 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
38 EXPECT_EQ(mset.Size(), (uptr)2); in TEST()
42 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
44 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
50 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
54 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
58 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
62 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
[all …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/compiler-rt/lib/orc/
H A Dsimple_packed_serialization.h62 Buffer += Size; in write()
63 Remaining -= Size; in write()
82 Buffer += Size; in read()
91 Buffer += Size; in skip()
338 return Size; in size()
352 uint64_t Size; in deserialize() local
380 uint64_t Size; in deserialize() local
416 return Size; in size()
459 uint64_t Size; in deserialize() local
544 return Size; in size()
[all …]

12345678910>>...87