Home
last modified time | relevance | path

Searched refs:curr_size (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/platform/
Dctstring_internal.h229 size_t curr_size = TF_TString_GetSize(str); in TF_TString_ResizeUninitialized() local
230 size_t copy_size = TF_min(new_size, curr_size); in TF_TString_ResizeUninitialized()
259 if (new_size < curr_size && new_size < curr_cap / 2) { in TF_TString_ResizeUninitialized()
326 size_t curr_size = TF_TString_GetSize(str); in TF_TString_Reserve() local
331 new_cap = TF_align16(TF_max(new_cap, curr_size) + 1) - 1; in TF_TString_Reserve()
339 memcpy(new_ptr, curr_ptr, curr_size); in TF_TString_Reserve()
341 str->u.large.size = TF_TString_ToInternalSizeT(curr_size, TF_TSTR_LARGE); in TF_TString_Reserve()
343 str->u.large.ptr[curr_size] = '\0'; in TF_TString_Reserve()
351 size_t curr_size = TF_TString_GetSize(str); in TF_TString_Resize() local
354 if (new_size > curr_size) { in TF_TString_Resize()
[all …]
/external/llvm-project/openmp/libomptarget/deviceRTLs/common/src/
Dreduction.cu46 uint32_t curr_size; in gpu_irregular_warp_reduce() local
48 curr_size = size; in gpu_irregular_warp_reduce()
49 mask = curr_size / 2; in gpu_irregular_warp_reduce()
52 curr_size = (curr_size + 1) / 2; in gpu_irregular_warp_reduce()
53 mask = curr_size / 2; in gpu_irregular_warp_reduce()
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/
DMachVMMemory.cpp173 mach_vm_size_t curr_size = in Read() local
177 m_err = ::mach_vm_read(task, curr_addr, curr_size, &vm_memory, in Read()
183 task, (uint64_t)curr_addr, (uint64_t)curr_size, in Read()
187 if (curr_bytes_read != curr_size) { in Read()
192 task, (uint64_t)curr_addr, (uint64_t)curr_size, vm_memory, in Read()
193 curr_bytes_read, curr_bytes_read, (uint64_t)curr_size); in Read()
DMachProcess.mm1713 nub_size_t curr_size = intersect_addr - curr_addr;
1715 m_task.WriteMemory(curr_addr, curr_size, ubuf + bytes_written);
1717 if (curr_bytes_written != curr_size) {
/external/webp/src/dec/
Didec_dec.c311 size_t curr_size = MemDataSize(mem); in DecodeWebPHeaders() local
316 headers.data_size = curr_size; in DecodeWebPHeaders()
349 const size_t curr_size = MemDataSize(&idec->mem_); in DecodeVP8FrameHeader() local
353 if (curr_size < VP8_FRAME_HEADER_SIZE) { in DecodeVP8FrameHeader()
357 if (!VP8GetInfo(data, curr_size, idec->chunk_size_, &width, &height)) { in DecodeVP8FrameHeader()
365 idec->io_.data_size = curr_size; in DecodeVP8FrameHeader()
525 size_t curr_size = MemDataSize(&idec->mem_); in DecodeVP8LHeader() local
529 if (curr_size < (idec->chunk_size_ >> 3)) { in DecodeVP8LHeader()
536 curr_size < idec->chunk_size_) { in DecodeVP8LHeader()
554 const size_t curr_size = MemDataSize(&idec->mem_); in DecodeVP8LData() local
[all …]
/external/llvm-project/lldb/source/Core/
DValue.cpp144 size_t curr_size = m_data_buffer.GetByteSize(); in AppendDataToHostBuffer() local
150 const size_t new_size = curr_size + scalar_size; in AppendDataToHostBuffer()
152 rhs.m_value.GetAsMemoryData(m_data_buffer.GetBytes() + curr_size, in AppendDataToHostBuffer()
165 const size_t new_size = curr_size + src_len; in AppendDataToHostBuffer()
167 ::memcpy(m_data_buffer.GetBytes() + curr_size, src, src_len); in AppendDataToHostBuffer()
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp1316 size_t curr_size = (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity() local
1317 l_set_randomly( buffer, curr_size, rand_state_write ); in l_capacity()
1318 …status = clEnqueueWriteBuffer (queue, buffer_mem, CL_TRUE, 0, curr_size, buffer, 0, 0, 0);test_err… in l_capacity()
1319 …status = clEnqueueNDRangeKernel(queue,writer,1,&offset,&curr_size,0,0,0,0); test_error_ret(status,… in l_capacity()
1325 size_t curr_size = (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity() local
1326 …status = clEnqueueNDRangeKernel(queue,reader,1,&offset,&curr_size,0,0,0,0); test_error_ret(status,… in l_capacity()
1327 …_uchar *)clEnqueueMapBuffer(queue, buffer_mem, CL_TRUE, CL_MAP_READ, 0, curr_size, 0, 0, 0, &statu… in l_capacity()
1328 l_set_randomly( buffer, curr_size, rand_state_read ); in l_capacity()
1329 err |= l_compare( "capacity", buffer, read_mem_ptr, curr_size, ti ); in l_capacity()
/external/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/docs/
DReductionDesign.txt135 int curr_size;
137 curr_size = size;
138 mask = curr_size/2;
141 curr_size = (curr_size+1)/2;
142 offset = curr_size/2;
/external/arm-trusted-firmware/tools/marvell/doimage/
Ddoimage.c1222 int curr_size; in print_extension() local
1230 curr_size = sizeof(ext_header_t) + ext_hdr->size; in print_extension()
1231 base += curr_size; in print_extension()
1232 pad -= curr_size; in print_extension()
1233 ext_hdr = (ext_header_t *)((uintptr_t)ext_hdr + curr_size); in print_extension()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c371 unsigned long curr_size = 0; /* BUG:14136 (keep track of file size) */ in main() local
1493 curr_size = file_size(fd); in main()
1494 if (curr_size + grow_incr >= fs_limit) { in main()
1499 curr_size, fs_limit); in main()
1504 if (growfile(fd, filename, grow_incr, Buffer, &curr_size) != 0) { /* BUG:14136 */ in main()
/external/llvm-project/lldb/source/Target/
DProcess.cpp2199 const size_t curr_size = size - bytes_read; in ReadMemoryFromInferior() local
2201 DoReadMemory(addr + bytes_read, bytes + bytes_read, curr_size, error); in ReadMemoryFromInferior()
2203 if (curr_bytes_read == curr_size || curr_bytes_read == 0) in ReadMemoryFromInferior()
2262 const size_t curr_size = size - bytes_written; in WriteMemoryPrivate() local
2264 addr + bytes_written, bytes + bytes_written, curr_size, error); in WriteMemoryPrivate()
2266 if (curr_bytes_written == curr_size || curr_bytes_written == 0) in WriteMemoryPrivate()
2323 size_t curr_size = intersect_addr - curr_addr; in WriteMemory() local
2325 WriteMemoryPrivate(curr_addr, ubuf + bytes_written, curr_size, error); in WriteMemory()
2327 if (curr_bytes_written != curr_size) { in WriteMemory()