/external/bsdiff/ |
D | bsdiff.cc | 49 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 …]
|
D | bspatch.cc | 263 std::vector<uint8_t> new_buf(1024 * 1024); in bspatch() local 286 new_file, oldpos - old_file_size, new_buf.data(), new_buf.size(), in bspatch() 316 if (!patch_reader.ReadDiffStream(new_buf.data(), read_bytes)) { in bspatch() 322 new_buf[k] += old_buf[k]; in bspatch() 323 if (!WriteAll(new_file, new_buf.data(), read_bytes)) { in bspatch() 338 new_file, oldpos - old_file_size, new_buf.data(), new_buf.size(), in bspatch() 353 new_file, control_entry.extra_size, new_buf.data(), new_buf.size(), in bspatch()
|
D | bsdiff_main.cc | 70 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()
|
D | diff_encoder.h | 27 const uint8_t* new_buf, in DiffEncoder() argument 32 new_buf_(new_buf), in DiffEncoder()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | radeon_video.c | 81 struct rvid_buffer *new_buf, unsigned new_size) in si_vid_resize_buffer() argument 85 unsigned bytes = MIN2(new_buf->res->buf->size, new_size); in si_vid_resize_buffer() 86 struct rvid_buffer old_buf = *new_buf; in si_vid_resize_buffer() 89 if (!si_vid_create_buffer(screen, new_buf, new_size, new_buf->usage)) in si_vid_resize_buffer() 96 dst = ws->buffer_map(new_buf->res->buf, cs, PIPE_TRANSFER_WRITE); in si_vid_resize_buffer() 106 ws->buffer_unmap(new_buf->res->buf); in si_vid_resize_buffer() 114 si_vid_destroy_buffer(new_buf); in si_vid_resize_buffer() 115 *new_buf = old_buf; in si_vid_resize_buffer()
|
/external/u-boot/drivers/fpga/ |
D | zynqmppl.c | 131 u32 *new_buf; in zynqmp_align_dma_buffer() local 135 new_buf = (u32 *)ALIGN((ulong)buf, ARCH_DMA_MINALIGN); in zynqmp_align_dma_buffer() 141 if (new_buf > (u32 *)buf) { in zynqmp_align_dma_buffer() 144 new_buf -= ARCH_DMA_MINALIGN; in zynqmp_align_dma_buffer() 147 buf, new_buf, swap); in zynqmp_align_dma_buffer() 150 new_buf[i] = load_word(&buf[i], swap); in zynqmp_align_dma_buffer() 152 buf = new_buf; in zynqmp_align_dma_buffer() 155 u32 *new_buf = (u32 *)buf; in zynqmp_align_dma_buffer() local 161 new_buf[i] = load_word(&buf[i], swap); in zynqmp_align_dma_buffer()
|
D | zynqpl.c | 299 u32 *new_buf; in zynq_align_dma_buffer() local 303 new_buf = (u32 *)ALIGN((u32)buf, ARCH_DMA_MINALIGN); in zynq_align_dma_buffer() 309 if (new_buf > buf) { in zynq_align_dma_buffer() 312 new_buf -= ARCH_DMA_MINALIGN; in zynq_align_dma_buffer() 315 (u32)buf, (u32)new_buf, swap); in zynq_align_dma_buffer() 318 new_buf[i] = load_word(&buf[i], swap); in zynq_align_dma_buffer() 320 buf = new_buf; in zynq_align_dma_buffer() 323 u32 *new_buf = (u32 *)buf; in zynq_align_dma_buffer() local 329 new_buf[i] = load_word(&buf[i], swap); in zynq_align_dma_buffer()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | radeon_video.c | 89 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() 104 dst = ws->buffer_map(new_buf->res->buf, cs, PIPE_TRANSFER_WRITE); in rvid_resize_buffer() 114 ws->buffer_unmap(new_buf->res->buf); in rvid_resize_buffer() 122 rvid_destroy_buffer(new_buf); in rvid_resize_buffer() 123 *new_buf = old_buf; in rvid_resize_buffer()
|
/external/libaom/libaom/aom_dsp/ |
D | buf_ans.c | 35 struct buffered_ans_symbol *new_buf = NULL; in aom_buf_ans_grow() local 37 AOM_CHECK_MEM_ERROR(c->error, new_buf, in aom_buf_ans_grow() 38 aom_malloc(new_size * sizeof(*new_buf))); in aom_buf_ans_grow() 39 memcpy(new_buf, c->buf, c->size * sizeof(*c->buf)); in aom_buf_ans_grow() 41 c->buf = new_buf; in aom_buf_ans_grow()
|
/external/ltp/utils/sctp/lib/ |
D | addrs.c | 49 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/mesa3d/src/gallium/drivers/svga/ |
D | svga_tgsi.c | 57 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/bsdiff/include/bsdiff/ |
D | bsdiff.h | 24 const uint8_t* new_buf, 32 const uint8_t* new_buf, 48 const uint8_t* new_buf,
|
/external/boringssl/src/ssl/ |
D | ssl_buffer.cc | 62 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/ |
D | r300_screen_buffer.c | 101 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() 107 if (new_buf) { in r300_buffer_transfer_map() 110 rbuf->buf = new_buf; in r300_buffer_transfer_map()
|
/external/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_decode.cpp | 368 uint8_t* new_buf = nullptr; in PDF_DataDecode() local 382 estimated_size, &new_buf, &new_size); in PDF_DataDecode() 385 estimated_size, &new_buf, &new_size); in PDF_DataDecode() 387 offset = A85Decode(last_buf, last_size, &new_buf, &new_size); in PDF_DataDecode() 389 offset = HexDecode(last_buf, last_size, &new_buf, &new_size); in PDF_DataDecode() 398 offset = RunLengthDecode(last_buf, last_size, &new_buf, &new_size); in PDF_DataDecode() 414 FX_Free(new_buf); in PDF_DataDecode() 417 last_buf = new_buf; in PDF_DataDecode()
|
/external/libaom/libaom/aom_scale/generic/ |
D | yv12extend.c | 442 YV12_BUFFER_CONFIG new_buf; in aom_yv12_realloc_with_new_border_c() local 443 memset(&new_buf, 0, sizeof(new_buf)); in aom_yv12_realloc_with_new_border_c() 445 &new_buf, ybf->y_crop_width, ybf->y_crop_height, ybf->subsampling_x, in aom_yv12_realloc_with_new_border_c() 450 aom_yv12_copy_frame(ybf, &new_buf, num_planes); in aom_yv12_realloc_with_new_border_c() 453 aom_extend_frame_borders(&new_buf, num_planes); in aom_yv12_realloc_with_new_border_c() 457 memcpy(ybf, &new_buf, sizeof(new_buf)); in aom_yv12_realloc_with_new_border_c()
|
/external/boringssl/src/crypto/ |
D | cpu-arm-linux.c | 90 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/webp/src/utils/ |
D | bit_writer_utils.c | 27 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/boringssl/src/crypto/buf/ |
D | buf.c | 108 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/libxcam/xcore/ |
D | image_processor.cpp | 328 SmartPtr<VideoBuffer> new_buf; in buffer_process_loop() local 334 ret = this->process_buffer (buf, new_buf); in buffer_process_loop() 341 if (new_buf.ptr ()) in buffer_process_loop() 342 notify_process_buffer_done (new_buf); in buffer_process_loop()
|
/external/libxcam/capi/ |
D | xcam_handle.cpp | 263 XCamVideoBuffer *new_buf = convert_to_external_buffer (output); in xcam_handle_execute() local 265 ERROR, new_buf, XCAM_RETURN_ERROR_MEM, in xcam_handle_execute() 268 *buf_out = new_buf; in xcam_handle_execute()
|
/external/adhd/cras/src/server/ |
D | cras_udev.c | 223 uint8_t *new_buf = realloc(buf, buf_size); in calculate_desc_checksum() local 224 if (new_buf == NULL) { in calculate_desc_checksum() 229 buf = new_buf; in calculate_desc_checksum()
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 90 PyObject *new_buf; in unshare_buffer() local 94 new_buf = PyBytes_FromStringAndSize(NULL, size); in unshare_buffer() 95 if (new_buf == NULL) in unshare_buffer() 97 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer() 99 Py_SETREF(self->buf, new_buf); in unshare_buffer()
|
/external/boringssl/src/crypto/err/ |
D | err.c | 687 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()
|
/external/python/cpython2/Modules/_io/ |
D | bytesio.c | 64 char *new_buf = NULL; in resize_buffer() local 92 new_buf = (char *)PyMem_Realloc(self->buf, alloc * sizeof(char)); in resize_buffer() 93 if (new_buf == NULL) { in resize_buffer() 98 self->buf = new_buf; in resize_buffer()
|