Home
last modified time | relevance | path

Searched refs:kDataLen (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/files/
Dfile_unittest.cc514 static const int kDataLen = sizeof(kData) - 1; local
518 ASSERT_EQ(kDataLen, file.WriteAtCurrentPos(kData, kDataLen));
519 ASSERT_EQ(kDataLen, file.Seek(base::File::FROM_CURRENT, 0));
520 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
522 char buf[kDataLen];
523 ASSERT_EQ(kDataLen, file2.Read(0, &buf[0], kDataLen));
524 ASSERT_EQ(std::string(kData, kDataLen), std::string(&buf[0], kDataLen));
559 const int kDataLen = sizeof(kData) - 1; local
564 if (file.Write(kLargeFileOffset - kDataLen - 1, kData, kDataLen) < 0)
567 ASSERT_EQ(kDataLen, file.Write(kLargeFileOffset + 1, kData, kDataLen));
/external/llvm/docs/
DCompileCudaWithLLVM.rst72 const int kDataLen = 4;
75 float host_x[kDataLen] = {1.0f, 2.0f, 3.0f, 4.0f};
76 float host_y[kDataLen];
81 cudaMalloc(&device_x, kDataLen * sizeof(float));
82 cudaMalloc(&device_y, kDataLen * sizeof(float));
83 cudaMemcpy(device_x, host_x, kDataLen * sizeof(float),
87 axpy<<<1, kDataLen>>>(a, device_x, device_y);
91 cudaMemcpy(host_y, device_y, kDataLen * sizeof(float),
95 for (int i = 0; i < kDataLen; ++i) {