Home
last modified time | relevance | path

Searched refs:BlockSize (Results 1 – 25 of 101) sorted by relevance

12345

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/MSF/
DMSFCommonTest.cpp29 SB.BlockSize = 4096; in TEST()
36 SB.NumBlocks = SB.BlockSize; in TEST()
38 SB.NumBlocks = SB.BlockSize + 1; in TEST()
40 SB.NumBlocks = SB.BlockSize * 8; in TEST()
42 SB.NumBlocks = SB.BlockSize * 8 + 1; in TEST()
47 SB.NumBlocks = SB.BlockSize; in TEST()
49 SB.NumBlocks = SB.BlockSize * 8; in TEST()
99 SB.BlockSize = 4096; in TEST()
117 SB.NumBlocks = SB.BlockSize * 8 + 1; in TEST()
119 EXPECT_EQ(SB.BlockSize + 1, SL.Length); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/MSF/
DMappedBlockStream.cpp46 MappedBlockStream::MappedBlockStream(uint32_t BlockSize, in MappedBlockStream() argument
50 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
54 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() argument
57 BlockSize, Layout, MsfData, Allocator); in createStream()
68 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
78 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
86 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createFpmStream()
173 uint32_t First = Offset / BlockSize; in readLongestContiguousChunk()
182 uint32_t OffsetInFirstBlock = Offset % BlockSize; in readLongestContiguousChunk()
183 uint32_t BytesFromFirstBlock = BlockSize - OffsetInFirstBlock; in readLongestContiguousChunk()
[all …]
DMSFBuilder.cpp39 MSFBuilder::MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow, in MSFBuilder() argument
42 FreePageMap(kDefaultFreePageMap), BlockSize(BlockSize), in MSFBuilder()
51 uint32_t BlockSize, in create() argument
53 if (!isValidBlockSize(BlockSize)) in create()
57 return MSFBuilder(BlockSize, in create()
115 uint32_t NextFpmBlock = alignTo(OldBlockCount, BlockSize) + 1; in allocateBlocks()
128 NextFpmBlock += BlockSize; in allocateBlocks()
160 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
183 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
197 uint32_t NewBlocks = bytesToBlocks(Size, BlockSize); in setStreamSize()
[all …]
DMSFCommon.cpp26 if (!isValidBlockSize(SB.BlockSize)) in validateSuperBlock()
38 bytesToBlocks(SB.NumDirectoryBytes, SB.BlockSize); in validateSuperBlock()
43 if (NumDirectoryBlocks > SB.BlockSize / sizeof(support::ulittle32_t)) in validateSuperBlock()
78 FL.Length = NumFpmIntervals * Msf.SB->BlockSize; in getFpmStreamLayout()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/MSF/
DMSFCommon.h37 support::ulittle32_t BlockSize; member
109 inline uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument
110 return divideCeil(NumBytes, BlockSize); in bytesToBlocks()
113 inline uint64_t blockToOffset(uint64_t BlockNumber, uint64_t BlockSize) { in blockToOffset() argument
114 return BlockNumber * BlockSize; in blockToOffset()
118 return L.SB->BlockSize; in getFpmIntervalLength()
133 inline uint32_t getNumFpmIntervals(uint32_t BlockSize, uint32_t NumBlocks, in getNumFpmIntervals() argument
141 return divideCeil(NumBlocks - FpmNumber, BlockSize); in getNumFpmIntervals()
146 return divideCeil(NumBlocks, 8 * BlockSize); in getNumFpmIntervals()
152 return getNumFpmIntervals(L.SB->BlockSize, L.SB->NumBlocks,
DMappedBlockStream.h45 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
75 uint32_t getBlockSize() const { return BlockSize; } in getBlockSize()
80 MappedBlockStream(uint32_t BlockSize, const MSFStreamLayout &StreamLayout,
91 const uint32_t BlockSize; variable
111 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
150 WritableMappedBlockStream(uint32_t BlockSize,
DMSFBuilder.h58 uint32_t BlockSize,
122 MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow,
135 uint32_t BlockSize; variable
/external/scudo/standalone/
Drelease.h186 uptr RegionSize, uptr NumberOfRegions, uptr BlockSize, in releaseFreeMemoryToOS() argument
194 if (BlockSize <= PageSize) { in releaseFreeMemoryToOS()
195 if (PageSize % BlockSize == 0) { in releaseFreeMemoryToOS()
197 FullPagesBlockCountMax = PageSize / BlockSize; in releaseFreeMemoryToOS()
199 } else if (BlockSize % (PageSize % BlockSize) == 0) { in releaseFreeMemoryToOS()
203 FullPagesBlockCountMax = PageSize / BlockSize + 1; in releaseFreeMemoryToOS()
208 FullPagesBlockCountMax = PageSize / BlockSize + 2; in releaseFreeMemoryToOS()
212 if (BlockSize % PageSize == 0) { in releaseFreeMemoryToOS()
235 if (BlockSize <= PageSize && PageSize % BlockSize == 0) { in releaseFreeMemoryToOS()
268 (PInRegion + BlockSize - 1) >> PageSizeLog); in releaseFreeMemoryToOS()
[all …]
Dprimary32.h161 const uptr BlockSize = getSizeByClassId(PossibleRegions[I] - 1U); in iterateOverBlocks() local
163 const uptr To = From + (RegionSize / BlockSize) * BlockSize; in iterateOverBlocks()
164 for (uptr Block = From; Block < To; Block += BlockSize) in iterateOverBlocks()
422 const uptr BlockSize = getSizeByClassId(ClassId); variable
428 (Sci->Stats.PoppedBlocks - Sci->Stats.PushedBlocks) * BlockSize;
433 BlockSize;
440 if (BlockSize < PageSize / 16U) {
445 (100U - 1U - BlockSize / 16U))
485 BlockSize, &Recorder, SkipRegion);
/external/scudo/standalone/tests/
Dquarantine_test.cpp17 static const scudo::uptr BlockSize = 8UL; variable
84 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
85 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
92 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
104 From.enqueue(Cb, FakePtr, BlockSize); in TEST()
107 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
110 EXPECT_EQ(BlockSize * 2 + sizeof(scudo::QuarantineBatch) * 2, in TEST()
118 EXPECT_EQ(BlockSize * 2 + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
134 From.enqueue(Cb, FakePtr, BlockSize); in TEST()
135 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
[all …]
Drelease_test.cpp156 const scudo::uptr BlockSize = SizeClassMap::getSizeByClassId(I); in testReleaseFreeMemoryToOS() local
157 const scudo::uptr MaxBlocks = PagesCount * PageSize / BlockSize; in testReleaseFreeMemoryToOS()
169 FreeArray.push_back(I * BlockSize); in testReleaseFreeMemoryToOS()
194 releaseFreeMemoryToOS(FreeList, 0, MaxBlocks * BlockSize, 1U, BlockSize, in testReleaseFreeMemoryToOS()
217 const scudo::uptr EndPage = (CurrentBlock + BlockSize - 1) / PageSize; in testReleaseFreeMemoryToOS()
239 CurrentBlock += BlockSize; in testReleaseFreeMemoryToOS()
244 while (P + PageSize <= MaxBlocks * BlockSize) { in testReleaseFreeMemoryToOS()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorRoundtripTest.java42 … { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.K64) }, in factory()
43 …{ new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.K256) }, in factory()
44 …] { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.M1) }, in factory()
47 …ct[] { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.M4, in factory()
50 …ct[] { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.M4, in factory()
53 …t[] { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.K64, in factory()
56 …ct[] { new FramedLZ4CompressorOutputStream.Parameters(FramedLZ4CompressorOutputStream.BlockSize.M4, in factory()
/external/boringssl/src/ssl/test/runner/
Dshim_ticket.go42 if len(in) < len(name)+block.BlockSize()+1+h.Size() {
63 iv := in[:block.BlockSize()]
64 in = in[block.BlockSize():]
65 if l := len(in); l == 0 || l%block.BlockSize() != 0 {
74 if pad == 0 || pad > block.BlockSize() || pad > len(in) {
100 iv := make([]byte, block.BlockSize())
102 pad := block.BlockSize() - (len(in) % block.BlockSize())
Dticket.go162 encrypted := make([]byte, aes.BlockSize+len(serialized)+sha256.Size)
163 iv := encrypted[:aes.BlockSize]
173 cipher.NewCTR(block, iv).XORKeyStream(encrypted[aes.BlockSize:], serialized)
183 if len(encrypted) < aes.BlockSize+sha256.Size {
187 iv := encrypted[:aes.BlockSize]
202 ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
/external/llvm/include/llvm/DebugInfo/PDB/Raw/
DPDBFile.h57 support::ulittle32_t BlockSize; member
106 static uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument
107 return alignTo(NumBytes, BlockSize) / BlockSize; in bytesToBlocks()
110 static uint64_t blockToOffset(uint64_t BlockNumber, uint64_t BlockSize) { in blockToOffset() argument
111 return BlockNumber * BlockSize; in blockToOffset()
/external/boringssl/src/crypto/cipher_extra/test/
Dmake_legacy_aead_tests.go161 iv := make([]byte, block.BlockSize())
171 sealed = make([]byte, 0, len(input)+len(digest)+cbc.BlockSize())
179 paddingLen := cbc.BlockSize() - len(sealed)%cbc.BlockSize()
181 if paddingLen != cbc.BlockSize() {
189 paddingLen += cbc.BlockSize()
191 if 256%cbc.BlockSize() != 0 {
194 paddingLen = 256 - len(sealed)%cbc.BlockSize()
298 hashBlockSize := hash.New().BlockSize()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorOutputStream.java62 public enum BlockSize { enum in FramedLZ4CompressorOutputStream
73 BlockSize(int size, int index) { in BlockSize() method in FramedLZ4CompressorOutputStream.BlockSize
89 private final BlockSize blockSize;
99 public static final Parameters DEFAULT = new Parameters(BlockSize.M4, true, false, false);
107 public Parameters(BlockSize blockSize) { in Parameters()
119 public Parameters(BlockSize blockSize, in Parameters()
135 … public Parameters(BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, in Parameters()
156 … public Parameters(BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, in Parameters()
/external/libgav1/libgav1/src/utils/
Dparameter_tree.h41 BlockSize block_size,
67 BlockSize block_size() const { return block_size_; } in block_size()
79 ParameterTree(int row4x4, int column4x4, BlockSize block_size) in ParameterTree()
86 BlockSize block_size_ = kBlockInvalid;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DDebugLinesSubsection.cpp34 if (BlockHeader->BlockSize < sizeof(LineBlockFragmentHeader)) in operator ()()
37 uint32_t Size = BlockHeader->BlockSize - sizeof(LineBlockFragmentHeader); in operator ()()
43 Len = BlockHeader->BlockSize; in operator ()()
119 BlockHeader.BlockSize = sizeof(LineBlockFragmentHeader); in commit()
120 BlockHeader.BlockSize += BlockHeader.NumLines * sizeof(LineNumberEntry); in commit()
122 BlockHeader.BlockSize += BlockHeader.NumLines * sizeof(ColumnNumberEntry); in commit()
/external/libgav1/libgav1/src/tile/bitstream/
Dpartition.cc30 BlockSize block_size) { in PartitionCdfGatherHorizontalAlike()
54 BlockSize block_size) { in PartitionCdfGatherVerticalAlike()
85 BlockSize block_size) { in GetPartitionCdf()
103 bool Tile::ReadPartition(int row4x4, int column4x4, BlockSize block_size, in ReadPartition()
/external/llvm/lib/DebugInfo/PDB/Raw/
DPDBFile.cpp43 uint32_t PDBFile::getBlockSize() const { return SB->BlockSize; } in getBlockSize()
56 return bytesToBlocks(SB->NumDirectoryBytes, SB->BlockSize); in getNumDirectoryBlocks()
60 return (uint64_t)SB->BlockMapAddr * SB->BlockSize; in getBlockMapOffset()
146 StreamSize == UINT32_MAX ? 0 : bytesToBlocks(StreamSize, SB->BlockSize); in parseStreamData()
158 uint64_t BlockEndOffset = (uint64_t)(Block + 1) * SB->BlockSize; in parseStreamData()
305 if (SB->BlockSize % sizeof(support::ulittle32_t) != 0) in setSuperBlock()
309 switch (SB->BlockSize) { in setSuperBlock()
321 if (Buffer->getLength() % SB->BlockSize != 0) in setSuperBlock()
337 if (NumDirectoryBlocks > SB->BlockSize / sizeof(support::ulittle32_t)) in setSuperBlock()
/external/libgav1/libgav1/src/
Dprediction_mask.cc132 int BlockShape(BlockSize block_size) { in BlockShape()
140 uint8_t GetWedgeDirection(BlockSize block_size, int index) { in GetWedgeDirection()
144 uint8_t GetWedgeOffsetX(BlockSize block_size, int index) { in GetWedgeOffsetX()
148 uint8_t GetWedgeOffsetY(BlockSize block_size, int index) { in GetWedgeOffsetY()
193 const auto block_size = static_cast<BlockSize>(size); in GenerateWedgeMask()
/external/llvm/lib/Target/MSP430/
DMSP430BranchSelector.cpp71 unsigned BlockSize = 0; in runOnMachineFunction() local
73 BlockSize += TII->GetInstSizeInBytes(MI); in runOnMachineFunction()
75 BlockSizes[MBB.getNumber()] = BlockSize; in runOnMachineFunction()
76 FuncSize += BlockSize; in runOnMachineFunction()
/external/libcxx/test/support/
Dcontrolled_allocators.hpp405 static const std::size_t BlockSize = alignof(std::max_align_t); member in MinAlignedAllocator
408 std::size_t bytes = (s + BlockSize - 1) & ~(BlockSize - 1); in alloc_size()
409 bytes += BlockSize; in alloc_size()
410 assert(bytes % BlockSize == 0); in alloc_size()
415 return reinterpret_cast<std::uintptr_t>(p) % BlockSize == 0; in is_max_aligned()
419 if (alignof(T) == BlockSize) { in is_min_aligned()
422 return reinterpret_cast<std::uintptr_t>(p) % BlockSize == alignof(T); in is_min_aligned()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DTarWriter.cpp34 static const int BlockSize = 512; variable
55 static_assert(sizeof(UstarHeader) == BlockSize, "invalid Ustar header");
85 OS.seek(alignTo(Pos, BlockSize)); in pad()
198 OS << std::string(BlockSize * 2, '\0'); in append()

12345