Home
last modified time | relevance | path

Searched refs:old_buf (Results 1 – 8 of 8) sorted by relevance

/external/bsdiff/
Dbsdiff.cc109 u_char *old_buf,*new_buf; in bsdiff() local
116 ((old_buf=static_cast<u_char*>(malloc(oldsize+1)))==NULL) || in bsdiff()
118 (read(fd,old_buf,oldsize)!=oldsize) || in bsdiff()
130 int ret = bsdiff(old_buf, oldsize, new_buf, newsize, patch_filename, nullptr); in bsdiff()
132 free(old_buf); in bsdiff()
142 int bsdiff(const u_char* old_buf, off_t oldsize, const u_char* new_buf, in bsdiff() argument
165 if (divsufsort(old_buf, I, oldsize)) err(1, "divsufsort"); in bsdiff()
215 len=search(I,old_buf,oldsize,new_buf+scan,newsize-scan, in bsdiff()
220 (old_buf[scsc+lastoffset] == new_buf[scsc])) in bsdiff()
227 (old_buf[scan+lastoffset] == new_buf[scan])) in bsdiff()
[all …]
Dbspatch.cc362 std::vector<uint8_t> old_buf(1024 * 1024), new_buf(1024 * 1024); in bspatch() local
411 size_t bytes_to_read = std::min(chunk_size, old_buf.size()); in bspatch()
412 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
427 new_buf[k] += old_buf[k]; in bspatch()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_video.c94 struct rvid_buffer old_buf = *new_buf; in rvid_resize_buffer() local
100 src = ws->buffer_map(old_buf.res->buf, cs, PIPE_TRANSFER_READ); in rvid_resize_buffer()
115 ws->buffer_unmap(old_buf.res->buf); in rvid_resize_buffer()
116 rvid_destroy_buffer(&old_buf); in rvid_resize_buffer()
121 ws->buffer_unmap(old_buf.res->buf); in rvid_resize_buffer()
123 *new_buf = old_buf; in rvid_resize_buffer()
Dr600_buffer_common.c194 struct pb_buffer *old_buf, *new_buf; in r600_alloc_resource() local
208 old_buf = res->buf; in r600_alloc_resource()
216 pb_reference(&old_buf, NULL); in r600_alloc_resource()
/external/bsdiff/include/bsdiff/
Dbsdiff.h24 int bsdiff(const u_char* old_buf,
/external/e2fsprogs/lib/ext2fs/
Dinline_data.c129 char *old_buf; in ext2fs_inline_data_dir_iterate() local
134 old_buf = ctx->buf; in ext2fs_inline_data_dir_iterate()
252 ctx->buf = old_buf; in ext2fs_inline_data_dir_iterate()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state.c699 struct pipe_resource *old_buf = i915->constants[shader]; in i915_set_constant_buffer() local
700 struct i915_buffer *old = old_buf ? i915_buffer(old_buf) : NULL; in i915_set_constant_buffer()
/external/webp/src/dec/
Didec_dec.c207 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer() local
208 const uint8_t* const old_start = old_buf + mem->start_; in RemapMemBuffer()