Home
last modified time | relevance | path

Searched refs:SizeInBytes (Results 1 – 25 of 84) sorted by relevance

1234

/external/deqp-deps/amber/src/
Dformat_test.cc38 EXPECT_EQ(16U, fmt.SizeInBytes()); in TEST_F()
49 EXPECT_EQ(48U, fmt.SizeInBytes()); in TEST_F()
60 EXPECT_EQ(32U, fmt.SizeInBytes()); in TEST_F()
84 EXPECT_EQ(test_data.size_in_bytes, fmt.SizeInBytes()) << test_data.name; in TEST_P()
266 EXPECT_EQ(4u, fmt.SizeInBytes()); in TEST_F()
272 EXPECT_EQ(4u, segs[0].SizeInBytes()); in TEST_F()
281 EXPECT_EQ(8u, fmt.SizeInBytes()); in TEST_F()
286 EXPECT_EQ(4u, segs[0].SizeInBytes()); in TEST_F()
288 EXPECT_EQ(4u, segs[1].SizeInBytes()); in TEST_F()
297 EXPECT_EQ(16u, fmt.SizeInBytes()); in TEST_F()
[all …]
Dformat.cc70 uint32_t Format::SizeInBytes() const { in SizeInBytes() function in amber::Format
77 size += static_cast<uint32_t>(seg.SizeInBytes()); in SizeInBytes()
116 Segment{size + segments_.back().SizeInBytes()}; in AddPaddedSegment()
132 last.SizeInBytes() >= seg.SizeInBytes()) { in AddSegment()
134 auto pad = last.SizeInBytes() - seg.SizeInBytes(); in AddSegment()
156 return 4 * n->SizeInBytes(); in CalcVecBaseAlignmentInBytes()
159 return n->RowCount() * n->SizeInBytes(); in CalcVecBaseAlignmentInBytes()
173 align = t->SizeInBytes(); in CalcArrayBaseAlignmentInBytes()
199 align = 4 * m->SizeInBytes(); in CalcMatrixBaseAlignmentInBytes()
201 align = m->RowCount() * m->SizeInBytes(); in CalcMatrixBaseAlignmentInBytes()
[all …]
Dbuffer.cc138 buf_1_ptr += seg.SizeInBytes(); in CalculateDiffs()
139 buf_2_ptr += seg.SizeInBytes(); in CalculateDiffs()
200 buf_ptr += seg.SizeInBytes(); in GetHistogramForChannel()
275 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in RecalculateMaxSizeInBytes()
285 if (GetMaxSizeInBytes() < element_count * format_->SizeInBytes()) in RecalculateMaxSizeInBytes()
286 SetMaxSizeInBytes(element_count * format_->SizeInBytes()); in RecalculateMaxSizeInBytes()
295 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in SetDataWithOffset()
311 format_->SizeInBytes(); in SetDataWithOffset()
395 bytes_.resize(element_count * format_->SizeInBytes()); in SetSizeInElements()
399 assert(size_in_bytes % format_->SizeInBytes() == 0); in SetSizeInBytes()
[all …]
Dtype.cc79 uint32_t List::SizeInBytes() const { in SizeInBytes() function in amber::type::List
85 size += member.SizeInBytes(); in SizeInBytes()
95 uint32_t Struct::SizeInBytes() const { in SizeInBytes() function in amber::type::Struct
Dtype_test.cc88 uint32_t bytes = i.SizeInBytes(); in TEST_F()
91 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
96 uint32_t bytes = i.SizeInBytes(); in TEST_F()
100 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
105 uint32_t bytes = i.SizeInBytes(); in TEST_F()
108 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
208 EXPECT_EQ(4u, Number(FormatMode::kUNorm).SizeInBytes()); in TEST_F()
212 EXPECT_EQ(1u, Number(FormatMode::kSInt, 8).SizeInBytes()); in TEST_F()
213 EXPECT_EQ(2u, Number(FormatMode::kSInt, 16).SizeInBytes()); in TEST_F()
214 EXPECT_EQ(4u, Number(FormatMode::kSInt, 32).SizeInBytes()); in TEST_F()
[all …]
Dtype.h94 virtual uint32_t SizeInBytes() const = 0;
154 uint32_t SizeInBytes() const override { return bits_ / 8; } in SizeInBytes() function
178 uint32_t SizeInBytes() const { return num_bits / 8; } in SizeInBytes() function
223 uint32_t SizeInBytes() const override;
247 uint32_t SizeInBytes() const override;
Dverifier.cc531 size_t size_in_bytes = buffer_element_count * fmt->SizeInBytes(); in ProbeSSBO()
532 if ((elem_count * fmt->SizeInBytes()) + offset > size_in_bytes) { in ProbeSSBO()
535 std::to_string((elem_count * fmt->SizeInBytes()) + offset) + in ProbeSSBO()
540 if (offset % fmt->SizeInBytes() != 0) { in ProbeSSBO()
545 std::to_string(fmt->SizeInBytes()) + ")"); in ProbeSSBO()
603 ptr += segment.SizeInBytes(); in ProbeSSBO()
Dbuffer.h163 return ElementCount() * format_->SizeInBytes(); in GetSizeInBytes()
167 uint32_t GetElementStride() { return format_->SizeInBytes(); } in GetElementStride()
Dformat.h58 uint32_t SizeInBytes() const { return num_bits_ / 8; } in SizeInBytes() function
114 uint32_t SizeInBytes() const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCELFStreamer.cpp24 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc, in EmitValueForModiferKind() argument
29 if (SizeInBytes == SIZE_LONG) in EmitValueForModiferKind()
31 else if (SizeInBytes == SIZE_WORD) in EmitValueForModiferKind()
40 SizeInBytes, Loc); in EmitValueForModiferKind()
DAVRMCELFStreamer.h45 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc = SMLoc(),
/external/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCELFStreamer.cpp24 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc, in emitValueForModiferKind() argument
29 if (SizeInBytes == SIZE_LONG) in emitValueForModiferKind()
31 else if (SizeInBytes == SIZE_WORD) in emitValueForModiferKind()
40 SizeInBytes, Loc); in emitValueForModiferKind()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_ring_buffer.h26 void *Ptr = MmapOrDie(SizeInBytes(Size), "RingBuffer"); in New()
28 uptr End = reinterpret_cast<uptr>(Ptr) + SizeInBytes(Size); in New()
33 UnmapOrDie(this, SizeInBytes(size())); in Delete()
41 static uptr SizeInBytes(uptr Size) { in SizeInBytes() function
45 uptr SizeInBytes() { return SizeInBytes(size()); } in SizeInBytes() function
/external/llvm-project/llvm/lib/IR/
DUser.cpp86 intptr_t SizeInBytes; member
99 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor()
102 reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes, DI->SizeInBytes); in getDescriptor()
139 DescInfo->SizeInBytes = DescBytes; in allocateFixedOperandUser()
188 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/external/llvm/lib/IR/
DUser.cpp94 intptr_t SizeInBytes; member
107 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor()
110 reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes, DI->SizeInBytes); in getDescriptor()
140 DescInfo->SizeInBytes = DescBytes; in allocateFixedOperandUser()
187 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DUser.cpp89 intptr_t SizeInBytes; member
102 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor()
105 reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes, DI->SizeInBytes); in getDescriptor()
135 DescInfo->SizeInBytes = DescBytes; in allocateFixedOperandUser()
184 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/external/llvm-project/flang/runtime/
Ddescriptor.h97 static constexpr std::size_t SizeInBytes(int lenParameters) { in SizeInBytes() function
101 std::size_t SizeInBytes() const;
271 static constexpr std::size_t SizeInBytes(
276 bytes += DescriptorAddendum::SizeInBytes(lengthTypeParameters);
281 std::size_t SizeInBytes() const;
330 Descriptor::SizeInBytes(maxRank, hasAddendum, maxLengthTypeParameters)};
343 assert(descriptor().SizeInBytes() <= byteSize); in Check()
Ddescriptor.cpp21 std::memcpy(this, &that, that.SizeInBytes()); in Descriptor()
71 std::size_t bytes{SizeInBytes(rank, true, derivedTypeLenParameters)}; in Create()
99 std::size_t Descriptor::SizeInBytes() const { in SizeInBytes() function in Fortran::runtime::Descriptor
102 (addendum ? addendum->SizeInBytes() : 0); in SizeInBytes()
247 std::size_t DescriptorAddendum::SizeInBytes() const { in SizeInBytes() function in Fortran::runtime::DescriptorAddendum
248 return SizeInBytes(LenParameters()); in SizeInBytes()
Dinternal-unit.cpp34 terminator, that.SizeInBytes() <= d.SizeInBytes(maxRank, true, 0)); in InternalDescriptorUnit()
/external/compiler-rt/lib/profile/
DInstrProfiling.c32 __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes) { in __llvm_profile_get_num_padding_bytes() argument
33 return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); in __llvm_profile_get_num_padding_bytes()
/external/llvm-project/compiler-rt/lib/profile/
DInstrProfiling.c36 __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes) { in __llvm_profile_get_num_padding_bytes() argument
37 return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); in __llvm_profile_get_num_padding_bytes()
/external/llvm-project/llvm/include/llvm/MC/
DMCExpr.h152 static unsigned encodeSubclassData(bool PrintInHex, unsigned SizeInBytes) { in encodeSubclassData() argument
153 assert(SizeInBytes <= sizeof(int64_t) && "Excessive size"); in encodeSubclassData()
154 return SizeInBytes | (PrintInHex ? PrintInHexBit : 0); in encodeSubclassData()
157 MCConstantExpr(int64_t Value, bool PrintInHex, unsigned SizeInBytes) in MCConstantExpr() argument
159 encodeSubclassData(PrintInHex, SizeInBytes)), Value(Value) {} in MCConstantExpr()
167 unsigned SizeInBytes = 0);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAlignment.h146 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
147 return SizeInBytes % Lhs.value() == 0; in isAligned()
152 inline bool isAligned(MaybeAlign Lhs, uint64_t SizeInBytes) { in isAligned() argument
154 return SizeInBytes % (*Lhs).value() == 0; in isAligned()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp86 bool parseLiteralValues(unsigned SizeInBytes, SMLoc L);
643 bool AVRAsmParser::parseLiteralValues(unsigned SizeInBytes, SMLoc L) { in parseLiteralValues() argument
653 AVRStreamer.EmitValueForModiferKind(Symbol, SizeInBytes, L, in parseLiteralValues()
671 AVRStreamer.EmitValueForModiferKind(Symbol, SizeInBytes, L, ModifierKind); in parseLiteralValues()
679 Parser.getStreamer().EmitValue(Value, SizeInBytes, L); in parseLiteralValues()
/external/llvm-project/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp88 bool parseLiteralValues(unsigned SizeInBytes, SMLoc L);
663 bool AVRAsmParser::parseLiteralValues(unsigned SizeInBytes, SMLoc L) { in parseLiteralValues() argument
673 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, in parseLiteralValues()
691 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, ModifierKind); in parseLiteralValues()
699 Parser.getStreamer().emitValue(Value, SizeInBytes, L); in parseLiteralValues()

1234