Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 25 of 45) sorted by relevance

12

/external/bsdiff/
Dbsdiff.cc49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff()
57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff()
64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff()
115 sai->SearchPrefix(new_buf + scan, newsize - scan, &len, &pos); in bsdiff()
118 if(old_buf[scsc+lastoffset] == new_buf[scsc]) in bsdiff()
125 (old_buf[scan+lastoffset] == new_buf[scan])) in bsdiff()
143 if(old_buf[lastpos+i]==new_buf[lastscan+i]) s++; in bsdiff()
[all …]
Dbspatch.cc264 std::vector<uint8_t> new_buf(1024 * 1024); in bspatch() local
287 new_file, oldpos - old_file_size, new_buf.data(), new_buf.size(), in bspatch()
317 if (!patch_reader.ReadDiffStream(new_buf.data(), read_bytes)) { in bspatch()
323 new_buf[k] += old_buf[k]; in bspatch()
324 if (!WriteAll(new_file, new_buf.data(), read_bytes)) { in bspatch()
341 new_file, oldpos - old_file_size, new_buf.data(), new_buf.size(), in bspatch()
356 new_file, control_entry.extra_size, new_buf.data(), new_buf.size(), in bspatch()
Dbsdiff_main.cc70 uint8_t* new_buf = static_cast<uint8_t*>(MapFile(new_filename, &newsize)); in GenerateBsdiffFromFiles() local
71 if (!new_buf) { in GenerateBsdiffFromFiles()
93 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles()
97 munmap(new_buf, newsize); in GenerateBsdiffFromFiles()
Ddiff_encoder.h27 const uint8_t* new_buf, in DiffEncoder() argument
32 new_buf_(new_buf), in DiffEncoder()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_video.c90 struct rvid_buffer *new_buf, unsigned new_size) in si_vid_resize_buffer() argument
94 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in si_vid_resize_buffer()
95 struct rvid_buffer old_buf = *new_buf; in si_vid_resize_buffer()
98 if (!si_vid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in si_vid_resize_buffer()
105 dst = ws->buffer_map(new_buf->res->buf, cs, PIPE_MAP_WRITE | RADEON_MAP_TEMPORARY); in si_vid_resize_buffer()
115 ws->buffer_unmap(new_buf->res->buf); in si_vid_resize_buffer()
123 si_vid_destroy_buffer(new_buf); in si_vid_resize_buffer()
124 *new_buf = old_buf; in si_vid_resize_buffer()
Dradeon_video.h61 struct rvid_buffer *new_buf, unsigned new_size);
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_video.c89 struct rvid_buffer *new_buf, unsigned new_size) in rvid_resize_buffer() argument
93 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in rvid_resize_buffer()
94 struct rvid_buffer old_buf = *new_buf; in rvid_resize_buffer()
97 if (!rvid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in rvid_resize_buffer()
105 dst = ws->buffer_map(new_buf->res->buf, cs, in rvid_resize_buffer()
116 ws->buffer_unmap(new_buf->res->buf); in rvid_resize_buffer()
124 rvid_destroy_buffer(new_buf); in rvid_resize_buffer()
125 *new_buf = old_buf; in rvid_resize_buffer()
/external/u-boot/drivers/fpga/
Dzynqmppl.c133 u32 *new_buf; in zynqmp_align_dma_buffer() local
137 new_buf = (u32 *)ALIGN((ulong)buf, ARCH_DMA_MINALIGN); in zynqmp_align_dma_buffer()
143 if (new_buf > (u32 *)buf) { in zynqmp_align_dma_buffer()
146 new_buf -= ARCH_DMA_MINALIGN; in zynqmp_align_dma_buffer()
149 buf, new_buf, swap); in zynqmp_align_dma_buffer()
152 new_buf[i] = load_word(&buf[i], swap); in zynqmp_align_dma_buffer()
154 buf = new_buf; in zynqmp_align_dma_buffer()
158 new_buf = buf; in zynqmp_align_dma_buffer()
164 new_buf[i] = load_word(&buf[i], swap); in zynqmp_align_dma_buffer()
Dversalpl.c16 ulong *new_buf; in versal_align_dma_buffer() local
19 new_buf = (ulong *)ALIGN((ulong)buf, ARCH_DMA_MINALIGN); in versal_align_dma_buffer()
20 memcpy(new_buf, buf, len); in versal_align_dma_buffer()
21 buf = new_buf; in versal_align_dma_buffer()
Dzynqpl.c301 u32 *new_buf; in zynq_align_dma_buffer() local
305 new_buf = (u32 *)ALIGN((u32)buf, ARCH_DMA_MINALIGN); in zynq_align_dma_buffer()
311 if (new_buf > buf) { in zynq_align_dma_buffer()
314 new_buf -= ARCH_DMA_MINALIGN; in zynq_align_dma_buffer()
317 (u32)buf, (u32)new_buf, swap); in zynq_align_dma_buffer()
320 new_buf[i] = load_word(&buf[i], swap); in zynq_align_dma_buffer()
322 buf = new_buf; in zynq_align_dma_buffer()
325 u32 *new_buf = (u32 *)buf; in zynq_align_dma_buffer() local
331 new_buf[i] = load_word(&buf[i], swap); in zynq_align_dma_buffer()
/external/ltp/utils/sctp/lib/
Daddrs.c49 char *new_buf; in sctp_getaddrs() local
70 new_buf = realloc(getaddrs, bufsize+4096); in sctp_getaddrs()
71 if (!new_buf) { in sctp_getaddrs()
76 getaddrs = (struct sctp_getaddrs*)new_buf; in sctp_getaddrs()
/external/bsdiff/include/bsdiff/
Dbsdiff.h24 const uint8_t* new_buf,
32 const uint8_t* new_buf,
48 const uint8_t* new_buf,
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi.c57 char *new_buf; in svga_shader_expand() local
61 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand()
63 new_buf = NULL; in svga_shader_expand()
65 if (!new_buf) { in svga_shader_expand()
73 emit->ptr = new_buf + (emit->ptr - emit->buf); in svga_shader_expand()
74 emit->buf = new_buf; in svga_shader_expand()
/external/perfetto/src/protozero/
Dpacked_repeated_fields.cc31 std::unique_ptr<uint8_t[]> new_buf(new uint8_t[new_size]); in GrowSlowpath() local
32 memcpy(new_buf.get(), storage_begin_, old_size); in GrowSlowpath()
33 heap_buf_ = std::move(new_buf); in GrowSlowpath()
/external/boringssl/src/ssl/
Dssl_buffer.cc62 uint8_t *new_buf = (uint8_t *)malloc(new_cap + SSL3_ALIGN_PAYLOAD - 1); in EnsureCap() local
63 if (new_buf == NULL) { in EnsureCap()
70 (0 - header_len - (uintptr_t)new_buf) & (SSL3_ALIGN_PAYLOAD - 1); in EnsureCap()
73 OPENSSL_memcpy(new_buf + new_offset, buf_ + offset_, size_); in EnsureCap()
77 buf_ = new_buf; in EnsureCap()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_screen_buffer.c101 struct pb_buffer *new_buf; in r300_buffer_transfer_map() local
104 new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.b.width0, in r300_buffer_transfer_map()
108 if (new_buf) { in r300_buffer_transfer_map()
111 rbuf->buf = new_buf; in r300_buffer_transfer_map()
/external/boringssl/src/crypto/
Dcpu-arm-linux.c90 char *new_buf = OPENSSL_realloc(buf, new_cap); in read_file() local
91 if (new_buf == NULL) { in read_file()
94 buf = new_buf; in read_file()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode.cpp414 std::unique_ptr<uint8_t, FxFreeDeleter> new_buf; in PDF_DataDecode() local
428 &new_buf, &new_size); in PDF_DataDecode()
431 &new_buf, &new_size); in PDF_DataDecode()
433 offset = A85Decode(last_span, &new_buf, &new_size); in PDF_DataDecode()
435 offset = HexDecode(last_span, &new_buf, &new_size); in PDF_DataDecode()
444 offset = RunLengthDecode(last_span, &new_buf, &new_size); in PDF_DataDecode()
460 last_span = {new_buf.get(), new_size}; in PDF_DataDecode()
461 result = std::move(new_buf); in PDF_DataDecode()
/external/boringssl/src/crypto/buf/
Dbuf.c108 char *new_buf = OPENSSL_realloc(buf->data, alloc_size); in BUF_MEM_reserve() local
109 if (new_buf == NULL) { in BUF_MEM_reserve()
114 buf->data = new_buf; in BUF_MEM_reserve()
/external/webp/src/utils/
Dbit_writer_utils.c27 uint8_t* new_buf; in BitWriterResize() local
40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize()
41 if (new_buf == NULL) { in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
50 bw->buf_ = new_buf; in BitWriterResize()
/external/libaom/libaom/aom_scale/generic/
Dyv12extend.c458 YV12_BUFFER_CONFIG new_buf; in aom_yv12_realloc_with_new_border_c() local
459 memset(&new_buf, 0, sizeof(new_buf)); in aom_yv12_realloc_with_new_border_c()
461 &new_buf, ybf->y_crop_width, ybf->y_crop_height, ybf->subsampling_x, in aom_yv12_realloc_with_new_border_c()
466 aom_yv12_copy_frame(ybf, &new_buf, num_planes); in aom_yv12_realloc_with_new_border_c()
469 aom_extend_frame_borders(&new_buf, num_planes); in aom_yv12_realloc_with_new_border_c()
473 memcpy(ybf, &new_buf, sizeof(new_buf)); in aom_yv12_realloc_with_new_border_c()
/external/u-boot/cmd/
Dnvedit_efi.c348 char *tmp_buf = NULL, *new_buf = NULL, *value; in append_value() local
432 new_buf = realloc(*bufp, *sizep + len); in append_value()
433 if (!new_buf) in append_value()
436 memcpy(new_buf + *sizep, value, len); in append_value()
437 *bufp = new_buf; in append_value()
/external/adhd/cras/src/server/
Dcras_udev.c220 uint8_t *new_buf = realloc(buf, buf_size); in calculate_desc_checksum() local
221 if (new_buf == NULL) { in calculate_desc_checksum()
226 buf = new_buf; in calculate_desc_checksum()
/external/python/cpython3/Modules/_io/
Dbytesio.c91 PyObject *new_buf; in unshare_buffer() local
95 new_buf = PyBytes_FromStringAndSize(NULL, size); in unshare_buffer()
96 if (new_buf == NULL) in unshare_buffer()
98 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer()
100 Py_SETREF(self->buf, new_buf); in unshare_buffer()
/external/boringssl/src/crypto/err/
Derr.c687 char *new_buf; in err_add_error_vdata() local
696 new_buf = OPENSSL_realloc(buf, alloced + 1); in err_add_error_vdata()
697 if (new_buf == NULL) { in err_add_error_vdata()
701 buf = new_buf; in err_add_error_vdata()

12