/external/perfetto/src/base/ |
D | utils_unittest.cc | 33 TEST(UtilsTest, ArraySize) { in TEST() argument 36 EXPECT_EQ(1u, ArraySize(char_arr_1)); in TEST() 37 EXPECT_EQ(4u, ArraySize(char_arr_4)); in TEST() 41 EXPECT_EQ(1u, ArraySize(int32_arr_1)); in TEST() 42 EXPECT_EQ(4u, ArraySize(int32_arr_4)); in TEST() 46 EXPECT_EQ(1u, ArraySize(int64_arr_1)); in TEST() 47 EXPECT_EQ(4u, ArraySize(int64_arr_4)); in TEST() 50 EXPECT_EQ(4u, ArraySize(kString)); in TEST() 58 EXPECT_EQ(1u, ArraySize(bar_1)); in TEST() 59 EXPECT_EQ(4u, ArraySize(bar_4)); in TEST()
|
D | unix_socket_unittest.cc | 216 if (!s->Receive(buf, sizeof(buf), fd_buf, ArraySize(fd_buf))) in TEST_F() 236 if (!s->Receive(buf, sizeof(buf), fd_buf, ArraySize(fd_buf))) in TEST_F() 254 base::ArraySize(buf_fd), kBlocking)); in TEST_F() 256 base::ArraySize(buf_fd), kBlocking)); in TEST_F() 564 iov[0].iov_len = base::ArraySize(hello); in TEST_F() 567 iov[1].iov_len = base::ArraySize(world); in TEST_F() 571 hdr.msg_iovlen = base::ArraySize(iov); in TEST_F() 579 EXPECT_EQ(iov[0].iov_len, base::ArraySize(hello) - 1); in TEST_F() 581 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(hello) - 1, &hdr); in TEST_F() 585 EXPECT_EQ(hdr.msg_iov[0].iov_len, base::ArraySize(world)); in TEST_F() [all …]
|
/external/grpc-grpc/test/cpp/util/ |
D | grpc_tool_test.cc | 125 size_t ArraySize(T& a) { in ArraySize() function 267 ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 281 ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 293 EXPECT_EXIT(GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 309 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 328 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 339 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 357 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 379 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() 389 EXPECT_TRUE(0 == GrpcToolMainLib(ArraySize(argv), argv, TestCliCredentials(), in TEST_F() [all …]
|
/external/perfetto/src/trace_processor/ |
D | heap_profile_tracker_unittest.cc | 212 uint64_t build_id_ids[base::ArraySize(build_ids)]; in TEST() 213 for (size_t i = 0; i < base::ArraySize(build_ids); ++i) in TEST() 217 uint64_t mapping_name_ids[base::ArraySize(mapping_names)]; in TEST() 218 for (size_t i = 0; i < base::ArraySize(mapping_names); ++i) in TEST() 221 HeapProfileTracker::SourceMapping mappings[base::ArraySize(mapping_names)] = in TEST() 245 uint64_t function_name_ids[base::ArraySize(function_names)]; in TEST() 246 for (size_t i = 0; i < base::ArraySize(function_names); ++i) in TEST() 249 HeapProfileTracker::SourceFrame frames[base::ArraySize(function_names)]; in TEST() 271 for (size_t i = 0; i < base::ArraySize(build_ids); ++i) { in TEST() 276 for (size_t i = 0; i < base::ArraySize(mapping_names); ++i) { in TEST() [all …]
|
/external/tensorflow/tensorflow/core/kernels/neon/ |
D | types.h | 42 int ArraySize(const Dims<N>& array, int index) { in ArraySize() function 51 DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 52 return ArraySize(array1, index1); in MatchingArraySize() 58 DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize()
|
D | depthwiseconv_float.h | 566 const int input_height = ArraySize(input_dims, 2); 567 const int input_width = ArraySize(input_dims, 1); 568 const int input_depth = ArraySize(input_dims, 0); 569 const int filter_height = ArraySize(filter_dims, 2); 570 const int filter_width = ArraySize(filter_dims, 1); 571 const int output_height = ArraySize(output_dims, 2); 572 const int output_width = ArraySize(output_dims, 1);
|
/external/swiftshader/third_party/LLVM/runtime/libprofile/ |
D | BasicBlockTracing.c | 53 unsigned ArraySize; in llvm_start_basic_block_tracing() local 58 ArraySize = BufferSize / sizeof (unsigned); in llvm_start_basic_block_tracing() 59 ArrayStart = malloc (ArraySize * sizeof (unsigned)); in llvm_start_basic_block_tracing() 60 ArrayEnd = ArrayStart + ArraySize; in llvm_start_basic_block_tracing()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | types.h | 405 int ArraySize(const Dims<N>& array, int index) { in ArraySize() function 414 TFLITE_DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 415 return ArraySize(array1, index1); in MatchingArraySize() 421 TFLITE_DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 507 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 516 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 526 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 537 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 561 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSizeSkipDim() 573 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSizeSkipDim() [all …]
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/ |
D | types.h | 389 int ArraySize(const Dims<N>& array, int index) { in ArraySize() function 398 TFLITE_DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 399 return ArraySize(array1, index1); in MatchingArraySize() 405 TFLITE_DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 491 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 500 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 510 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 521 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSize() 545 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSizeSkipDim() 557 TFLITE_DCHECK_EQ(ArraySize(dims, i), ArraySize(check_dims_0, i)); in MatchingFlatSizeSkipDim() [all …]
|
D | common.h | 213 const int extent0 = ArraySize(input0_dims, i); in NdArrayDescsForElementwiseBroadcast() 214 const int extent1 = ArraySize(input1_dims, i); in NdArrayDescsForElementwiseBroadcast()
|
/external/tensorflow/tensorflow/core/util/ |
D | tensor_slice_writer_test.cc | 66 inline size_t ArraySize(const T (&v)[SIZE]) { in ArraySize() function 229 EXPECT_EQ(ArraySize(data), ss.data().float_val_size()); in CheckEntries() 230 ExpectIdenticalFloatArrays(data, ArraySize(data), in CheckEntries() 239 EXPECT_EQ(ArraySize(data), ss.data().int_val_size()); in CheckEntries() 240 ExpectIdenticalIntArrays(data, ArraySize(data), ss.data().int_val().data()); in CheckEntries() 248 EXPECT_EQ(ArraySize(data), ss.data().int_val_size()); in CheckEntries() 249 ExpectIdenticalIntArrays(data, ArraySize(data), ss.data().int_val().data()); in CheckEntries() 257 EXPECT_EQ(ArraySize(data), ss.data().int64_val_size()); in CheckEntries() 258 ExpectIdenticalIntArrays(data, ArraySize(data), in CheckEntries() 267 EXPECT_EQ(ArraySize(data), ss.data().int_val_size()); in CheckEntries() [all …]
|
/external/perfetto/src/tracing/core/ |
D | sliced_protobuf_input_stream_unittest.cc | 72 for (size_t i = 0; i < base::ArraySize(kBufs); i++) in TEST() 78 for (size_t i = 0; i < base::ArraySize(kBufs); i++) { in TEST() 91 for (size_t i = 0; i < base::ArraySize(kBufs); i++) in TEST()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | MemoryBuiltins.cpp | 121 Value *ArraySize = computeArraySize(CI, TD); in isArrayMalloc() local 123 if (ArraySize && in isArrayMalloc() 124 ArraySize != ConstantInt::get(CI->getArgOperand(0)->getType(), 1)) in isArrayMalloc()
|
/external/perfetto/src/protozero/ |
D | proto_utils_unittest.cc | 29 using ::perfetto::base::ArraySize; 109 for (size_t i = 0; i < ArraySize(kVarIntExpectations); ++i) { in TEST() 176 for (size_t i = 0; i < ArraySize(kVarIntExpectations); ++i) { in TEST()
|
/external/perfetto/include/perfetto/traced/ |
D | sys_stats_counters.h | 213 for (size_t i = 0; i < base::ArraySize(kMeminfoKeys); i++) in BuildMeminfoCounterNames() 217 for (size_t i = 0; i < base::ArraySize(kMeminfoKeys); i++) in BuildMeminfoCounterNames() 224 for (size_t i = 0; i < base::ArraySize(kVmstatKeys); i++) in BuildVmstatCounterNames() 228 for (size_t i = 0; i < base::ArraySize(kVmstatKeys); i++) in BuildVmstatCounterNames()
|
/external/clang/lib/Sema/ |
D | SemaType.cpp | 2050 static bool isArraySizeVLA(Sema &S, Expr *ArraySize, llvm::APSInt &SizeVal) { in isArraySizeVLA() argument 2065 return S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser, in isArraySizeVLA() 2086 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument 2149 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType() 2150 ExprResult Result = CheckPlaceholderExpr(ArraySize); in BuildArrayType() 2152 ArraySize = Result.get(); in BuildArrayType() 2156 if (ArraySize && !ArraySize->isRValue()) { in BuildArrayType() 2157 ExprResult Result = DefaultLvalueConversion(ArraySize); in BuildArrayType() 2161 ArraySize = Result.get(); in BuildArrayType() 2167 ArraySize && !ArraySize->isTypeDependent() && in BuildArrayType() [all …]
|
D | SemaExprCXX.cpp | 1405 Expr *ArraySize = nullptr; in ActOnCXXNew() local 1420 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts); in ActOnCXXNew() 1425 if (ArraySize) { in ActOnCXXNew() 1473 ArraySize, in ActOnCXXNew() 1506 Expr *ArraySize, in BuildCXXNew() argument 1563 if (!ArraySize) { in BuildCXXNew() 1566 ArraySize = IntegerLiteral::Create(Context, Array->getSize(), in BuildCXXNew() 1593 if (ArraySize && ArraySize->getType()->isNonOverloadPlaceholderType()) { in BuildCXXNew() 1594 ExprResult result = CheckPlaceholderExpr(ArraySize); in BuildCXXNew() 1596 ArraySize = result.get(); in BuildCXXNew() [all …]
|
/external/flatbuffers/net/FlatBuffers/ |
D | ByteBuffer.cs | 222 public static int ArraySize<T>(T[] x) in ArraySize() method in FlatBuffers.ByteBuffer 228 public static int ArraySize<T>(Span<T> x) in ArraySize() method in FlatBuffers.ByteBuffer 249 Buffer.BlockCopy(_buffer.Buffer, pos, arr, 0, ArraySize(arr)); in Buffer.BlockCopy() 831 int numBytes = ByteBuffer.ArraySize(x); 871 int numBytes = ByteBuffer.ArraySize(x);
|
/external/perfetto/src/profiling/memory/ |
D | wire_protocol.cc | 74 hdr.msg_iovlen = base::ArraySize(iovecs); in SendWireMessage() 78 hdr.msg_iovlen = base::ArraySize(iovecs) - 1; in SendWireMessage()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | SmallPtrSet.cpp | 105 unsigned ArraySize = CurArraySize; in FindBucketFor() local 126 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Instructions.cpp | 406 Value *ArraySize, in createMalloc() argument 416 if (!ArraySize) in createMalloc() 417 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 418 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 420 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 423 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 427 if (!IsConstantOne(ArraySize)) { in createMalloc() 429 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc() 430 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc() 438 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Instructions.cpp | 356 Value *ArraySize, Function *MallocF, in createMalloc() argument 365 if (!ArraySize) in createMalloc() 366 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 367 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 376 if (!IsConstantOne(ArraySize)) { in createMalloc() 378 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc() 379 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc() 387 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | VLASizeChecker.cpp | 170 DefinedOrUnknownSVal ArraySize = ArraySizeVal.castAs<DefinedOrUnknownSVal>(); in checkPreStmt() local 172 svalBuilder.evalEQ(state, Extent, ArraySize); in checkPreStmt()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 444 Value *ArraySize, in createMalloc() argument 454 if (!ArraySize) in createMalloc() 455 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 456 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 465 if (!IsConstantOne(ArraySize)) { in createMalloc() 467 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc() 468 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc() 476 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() [all …]
|
/external/bcc/src/cc/frontends/b/ |
D | codegen_llvm.h | 98 llvm::Value *ArraySize = nullptr); 101 llvm::Value *ArraySize = nullptr);
|