/external/deqp/framework/common/ |
D | tcuVector.hpp | 36 template <typename T, int VecSize, int Size> 44 VecAccess& operator= (const Vector<T, Size>& v); 46 operator Vector<T, Size> (void) const; 50 int m_index[Size]; 53 template <typename T, int VecSize, int Size> 54 VecAccess<T, VecSize, Size>::VecAccess (Vector<T, VecSize>& v, int x, int y) in VecAccess() 57 DE_STATIC_ASSERT(Size == 2); in VecAccess() 62 template <typename T, int VecSize, int Size> 63 VecAccess<T, VecSize, Size>::VecAccess (Vector<T, VecSize>& v, int x, int y, int z) in VecAccess() 66 DE_STATIC_ASSERT(Size == 3); in VecAccess() [all …]
|
D | tcuVectorUtil.hpp | 126 template <typename T, int Size> 127 inline T dot (const Vector<T, Size>& a, const Vector<T, Size>& b) in dot() 130 for (int i = 0; i < Size; i++) in dot() 135 template <typename T, int Size> 136 inline T lengthSquared (const Vector<T, Size>& a) in lengthSquared() 139 for (int i = 0; i < Size; i++) in lengthSquared() 144 template <typename T, int Size> 145 …e::meta::EnableIf<T, de::meta::TypesSame<T, double>::Value>::Type length (const Vector<T, Size>& a) in length() 150 template <typename T, int Size> 151 …de::meta::EnableIf<T, de::meta::TypesSame<T, float>::Value>::Type length (const Vector<T, Size>& a) in length() [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
D | GPRArith.cpp | 326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() 334 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 336 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Src, \ in TEST_F() 338 __ test(IceType_i##Size, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 351 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F() 358 #define TestImplRegImm(Dst, Value0, Imm, Size) \ in TEST_F() argument 362 "(" #Dst ", " #Value0 ", " #Imm ", " #Size ")"; \ in TEST_F() 366 __ mov(IceType_i##Size, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() 368 __ test(IceType_i##Size, GPRRegister::Encoded_Reg_##Dst, \ in TEST_F() [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
D | GPRArith.cpp | 362 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument 366 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F() 370 __ mov(IceType_i##Size, Encoded_GPR_##Dst(), Immediate(Value0)); \ in TEST_F() 371 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F() 372 __ test(IceType_i##Size, Encoded_GPR_##Dst(), Encoded_GPR_##Src()); \ in TEST_F() 382 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F() 389 #define TestImplRegImm(Dst, Value0, Imm, Size) \ in TEST_F() argument 393 "(" #Dst ", " #Value0 ", " #Imm ", " #Size ")"; \ in TEST_F() 397 __ mov(IceType_i##Size, Encoded_GPR_##Dst(), Immediate(Value0)); \ in TEST_F() 398 __ test(IceType_i##Size, Encoded_GPR_##Dst(), \ in TEST_F() [all …]
|
/external/libchrome/ui/gfx/geometry/ |
D | size_unittest.cc | 22 Size a(10, 20); in TEST() 32 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0, 0))); in TEST() 33 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.0001f, 0.0001f))); in TEST() 34 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.4999f, 0.4999f))); in TEST() 35 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.5f, 0.5f))); in TEST() 36 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.9999f, 0.9999f))); in TEST() 38 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10, 10))); in TEST() 39 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10.0001f, 10.0001f))); in TEST() 40 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10.4999f, 10.4999f))); in TEST() 41 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10.5f, 10.5f))); in TEST() [all …]
|
D | size.h | 25 class GFX_EXPORT Size { 27 constexpr Size() : width_(0), height_(0) {} in Size() function 28 constexpr Size(int width, int height) in Size() function 31 explicit Size(const CGSize& s); 35 Size& operator=(const CGSize& s); 62 void SetToMin(const Size& other); 63 void SetToMax(const Size& other); 74 inline bool operator==(const Size& lhs, const Size& rhs) { 78 inline bool operator!=(const Size& lhs, const Size& rhs) { 85 void PrintTo(const Size& size, ::std::ostream* os); [all …]
|
D | size.cc | 25 Size::Size(const CGSize& s) in Size() function in gfx::Size 30 Size& Size::operator=(const CGSize& s) { in operator =() 38 SIZE Size::ToSIZE() const { in ToSIZE() 45 CGSize Size::ToCGSize() const { in ToCGSize() 50 int Size::GetArea() const { in GetArea() 54 base::CheckedNumeric<int> Size::GetCheckedArea() const { in GetCheckedArea() 60 void Size::Enlarge(int grow_width, int grow_height) { in Enlarge() 65 void Size::SetToMin(const Size& other) { in SetToMin() 70 void Size::SetToMax(const Size& other) { in SetToMax() 75 std::string Size::ToString() const { in ToString() [all …]
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerMutate.cpp | 69 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size, in Mutate_Custom() argument 71 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom() 74 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument 76 if (Size == 0) in Mutate_CustomCrossOver() 85 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver() 93 size_t MutationDispatcher::Mutate_ShuffleBytes(uint8_t *Data, size_t Size, in Mutate_ShuffleBytes() argument 95 if (Size > MaxSize || Size == 0) return 0; in Mutate_ShuffleBytes() 97 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes() 98 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes() 99 assert(ShuffleStart + ShuffleAmount <= Size); in Mutate_ShuffleBytes() [all …]
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerMutate.cpp | 69 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size, in Mutate_Custom() argument 71 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom() 74 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument 76 if (Size == 0) in Mutate_CustomCrossOver() 85 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver() 93 size_t MutationDispatcher::Mutate_ShuffleBytes(uint8_t *Data, size_t Size, in Mutate_ShuffleBytes() argument 95 if (Size > MaxSize || Size == 0) return 0; in Mutate_ShuffleBytes() 97 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes() 98 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes() 99 assert(ShuffleStart + ShuffleAmount <= Size); in Mutate_ShuffleBytes() [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerMutate.cpp | 70 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size, in Mutate_Custom() argument 72 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom() 75 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument 77 if (!Corpus || Corpus->size() < 2 || Size == 0) in Mutate_CustomCrossOver() 86 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver() 94 size_t MutationDispatcher::Mutate_ShuffleBytes(uint8_t *Data, size_t Size, in Mutate_ShuffleBytes() argument 96 assert(Size); in Mutate_ShuffleBytes() 98 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes() 99 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes() 100 assert(ShuffleStart + ShuffleAmount <= Size); in Mutate_ShuffleBytes() [all …]
|
D | FuzzerFnAdapter.h | 33 template <typename Fn> bool Adapt(Fn F, const uint8_t *Data, size_t Size); 44 size_t UnpackPrimitive(const uint8_t *Data, size_t Size, T *Value) { in UnpackPrimitive() argument 45 if (Size < sizeof(T)) in UnpackPrimitive() 46 return Size; in UnpackPrimitive() 48 return Size - sizeof(T); in UnpackPrimitive() 55 size_t UnpackSingle(const uint8_t *Data, size_t Size, T *Value); 59 size_t UnpackSingle<Type>(const uint8_t *Data, size_t Size, Type *Value) { \ 60 return UnpackPrimitive(Data, Size, Value); \ 86 size_t UnpackSingle<std::vector<uint8_t>>(const uint8_t *Data, size_t Size, in UNPACK_SINGLE_PRIMITIVE() 88 if (Size < 1) in UNPACK_SINGLE_PRIMITIVE() [all …]
|
/external/llvm-project/llvm/lib/BinaryFormat/ |
D | MsgPackWriter.cpp | 102 size_t Size = s.size(); in write() local 104 if (Size <= FixMax::String) in write() 105 EW.write(static_cast<uint8_t>(FixBits::String | Size)); in write() 106 else if (!Compatible && Size <= UINT8_MAX) { in write() 108 EW.write(static_cast<uint8_t>(Size)); in write() 109 } else if (Size <= UINT16_MAX) { in write() 111 EW.write(static_cast<uint16_t>(Size)); in write() 113 assert(Size <= UINT32_MAX && "String object too long to be encoded"); in write() 115 EW.write(static_cast<uint32_t>(Size)); in write() 124 size_t Size = Buffer.getBufferSize(); in write() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/ |
D | MsgPackWriter.cpp | 102 size_t Size = s.size(); in write() local 104 if (Size <= FixMax::String) in write() 105 EW.write(static_cast<uint8_t>(FixBits::String | Size)); in write() 106 else if (!Compatible && Size <= UINT8_MAX) { in write() 108 EW.write(static_cast<uint8_t>(Size)); in write() 109 } else if (Size <= UINT16_MAX) { in write() 111 EW.write(static_cast<uint16_t>(Size)); in write() 113 assert(Size <= UINT32_MAX && "String object too long to be encoded"); in write() 115 EW.write(static_cast<uint32_t>(Size)); in write() 124 size_t Size = Buffer.getBufferSize(); in write() local [all …]
|
/external/rust/crates/plotters/src/element/ |
D | points.rs | 7 pub trait PointElement<Coord, Size: SizeDesc> { 8 fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self; in make_point() argument 12 pub struct Cross<Coord, Size: SizeDesc> { 14 size: Size, 18 impl<Coord, Size: SizeDesc> Cross<Coord, Size> { 19 pub fn new<T: Into<ShapeStyle>>(coord: Coord, size: Size, style: T) -> Self { in new() argument 28 impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a Cross<Coord, Size> { 36 impl<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB> for Cross<Coord, Size> { 55 pub struct TriangleMarker<Coord, Size: SizeDesc> { 57 size: Size, [all …]
|
/external/llvm-project/llvm/unittests/Object/ |
D | XCOFFObjectFileTest.cpp | 47 uint64_t Size = sizeof(V); in TEST() local 48 Expected<XCOFFTracebackTable> TTOrErr = XCOFFTracebackTable::create(V, Size); in TEST() 98 EXPECT_EQ(Size, 25u); in TEST() 105 uint64_t Size = sizeof(V); in TEST() local 106 Expected<XCOFFTracebackTable> TTOrErr = XCOFFTracebackTable::create(V, Size); in TEST() 122 Size = sizeof(V); in TEST() 123 Expected<XCOFFTracebackTable> TTOrErr1 = XCOFFTracebackTable::create(V, Size); in TEST() 130 Size = sizeof(V); in TEST() 131 Expected<XCOFFTracebackTable> TTOrErr2 = XCOFFTracebackTable::create(V, Size); in TEST() 138 Size = sizeof(V); in TEST() [all …]
|
/external/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/ |
D | WebAssemblyDisassembler.cpp | 46 DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size, 49 Optional<DecodeStatus> onSymbolStart(SymbolInfoTy &Symbol, uint64_t &Size, 77 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument 78 if (Size >= Bytes.size()) in nextByte() 80 auto V = Bytes[Size]; in nextByte() 81 Size++; in nextByte() 85 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument 89 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB() 91 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB() 96 Size += N; in nextLEB() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/Disassembler/ |
D | WebAssemblyDisassembler.cpp | 46 DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size, 49 DecodeStatus onSymbolStart(StringRef Name, uint64_t &Size, 76 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument 77 if (Size >= Bytes.size()) in nextByte() 79 auto V = Bytes[Size]; in nextByte() 80 Size++; in nextByte() 84 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument 88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB() 90 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB() 95 Size += N; in nextLEB() [all …]
|
/external/webrtc/sdk/android/api/org/webrtc/ |
D | CameraEnumerationAndroid.java | 26 static final ArrayList<Size> COMMON_RESOLUTIONS = new ArrayList<Size>(Arrays.asList( 28 new Size(160, 120), // 1, QQVGA 29 new Size(240, 160), // 2, HQVGA 30 new Size(320, 240), // 3, QVGA 31 new Size(400, 240), // 4, WQVGA 32 new Size(480, 320), // 5, HVGA 33 new Size(640, 360), // 6, nHD 34 new Size(640, 480), // 7, VGA 35 new Size(768, 480), // 8, WVGA 36 new Size(854, 480), // 9, FWVGA [all …]
|
/external/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
D | guarded_pool_allocator_posix.cpp | 29 void MaybeSetMappingName(void *Mapping, size_t Size, const char *Name) { in MaybeSetMappingName() argument 31 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, Mapping, Size, Name); in MaybeSetMappingName() 45 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map() argument 46 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() 54 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap() 56 assert((Size % State.PageSize) == 0); in unmap() 57 Check(munmap(Ptr, Size) == 0, in unmap() 61 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool() argument [all …]
|
/external/gwp_asan/gwp_asan/platform_specific/ |
D | guarded_pool_allocator_posix.cpp | 29 void MaybeSetMappingName(void *Mapping, size_t Size, const char *Name) { in MaybeSetMappingName() argument 31 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, Mapping, Size, Name); in MaybeSetMappingName() 45 void *GuardedPoolAllocator::map(size_t Size, const char *Name) const { in map() argument 46 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() 54 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { in unmap() 56 assert((Size % State.PageSize) == 0); in unmap() 57 Check(munmap(Ptr, Size) == 0, in unmap() 61 void *GuardedPoolAllocator::reserveGuardedPool(size_t Size) { in reserveGuardedPool() argument [all …]
|
/external/pdfium/testing/resources/pixel/ |
D | font_size.in | 35 0 20 Td /F1 0 Tf (Size 0) Tj 36 0 20 Td /F1 1 Tf (Size 1) Tj 37 0 20 Td /F1 2 Tf (Size 2) Tj 38 0 20 Td /F1 3 Tf (Size 3) Tj 39 0 20 Td /F1 4 Tf (Size 4) Tj 40 0 20 Td /F1 5 Tf (Size 5) Tj 41 0 20 Td /F1 6 Tf (Size 6) Tj 42 0 20 Td /F1 7 Tf (Size 7) Tj 43 0 20 Td /F1 8 Tf (Size 8) Tj 44 0 20 Td /F1 9 Tf (Size 9) Tj [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
D | combined_test.cpp | 37 bool isTaggedAllocation(AllocatorT *Allocator, scudo::uptr Size, in isTaggedAllocation() argument 47 scudo::roundUpTo(Size, MinAlignment) + in isTaggedAllocation() 53 void checkMemoryTaggingMaybe(AllocatorT *Allocator, void *P, scudo::uptr Size, in checkMemoryTaggingMaybe() argument 55 if (!isTaggedAllocation(Allocator, Size, Alignment)) in checkMemoryTaggingMaybe() 58 Size = scudo::roundUpTo(Size, scudo::archMemoryTagGranuleSize()); in checkMemoryTaggingMaybe() 68 reinterpret_cast<char *>(P)[Size] = 0xaa; in checkMemoryTaggingMaybe() 107 const scudo::uptr Size = (1U << SizeLog) + Delta; in testAllocator() local 108 void *P = Allocator->allocate(Size, Origin, Align); in testAllocator() 112 EXPECT_LE(Size, Allocator->getUsableSize(P)); in testAllocator() 113 memset(P, 0xaa, Size); in testAllocator() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktSampleVerifierUtil.hpp | 108 template <int Size> 109 bool isEqualRelEpsilon (const tcu::Vector<float, Size>& a, const tcu::Vector<float, Size>& b, const… in isEqualRelEpsilon() 111 for (int compNdx = 0; compNdx < Size; ++compNdx) in isEqualRelEpsilon() 122 template <int Size> 123 …l isInRange (const tcu::Vector<float, Size>& v, const tcu::Vector<float, Size>& min, const tcu::Ve… in isInRange() 125 for (int compNdx = 0; compNdx < Size; ++compNdx) in isInRange() 136 template <int Size> 137 tcu::Vector<float, Size> floor (const tcu::Vector<float, Size>& v) in floor() 139 tcu::Vector<float, Size> result; in floor() 141 for (int compNdx = 0; compNdx < Size; ++compNdx) in floor() [all …]
|
/external/llvm-project/llvm/test/CodeGen/AMDGPU/ |
D | hsa-metadata-from-llvm-ir-full.ll | 33 ; CHECK-NEXT: Size: 1 37 ; CHECK-NEXT: - Size: 8 40 ; CHECK-NEXT: - Size: 8 43 ; CHECK-NEXT: - Size: 8 46 ; CHECK-NEXT: - Size: 8 68 ; CHECK-NEXT: Size: 1 72 ; CHECK-NEXT: - Size: 8 75 ; CHECK-NEXT: - Size: 8 78 ; CHECK-NEXT: - Size: 8 81 ; CHECK-NEXT: - Size: 8 [all …]
|
/external/scudo/standalone/ |
D | vector.h | 24 Size = 0; in init() 33 DCHECK_LT(I, Size); 37 DCHECK_LT(I, Size); 41 DCHECK_LE(Size, capacity()); in push_back() 42 if (Size == capacity()) { in push_back() 43 const uptr NewCapacity = roundUpToPowerOfTwo(Size + 1); in push_back() 46 memcpy(&Data[Size++], &Element, sizeof(T)); 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() [all …]
|