/external/bsdiff/ |
D | bsdiff.cc | 48 off_t newsize) { in matchlen() argument 51 for(i=0;(i<oldsize)&&(i<newsize);i++) in matchlen() 63 const u_char* new_buf, off_t newsize, off_t st, off_t en, in search() argument 68 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize); in search() 69 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize); in search() 81 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) { in search() 82 return search(I,old,oldsize,new_buf,newsize,x,en,pos); in search() 84 return search(I,old,oldsize,new_buf,newsize,st,x,pos); in search() 110 off_t oldsize,newsize; in bsdiff() local 124 ((newsize=lseek(fd,0,SEEK_END))==-1) || in bsdiff() [all …]
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap01.c | 92 int newsize; /* new size of virtual memory block */ variable 112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); in main() 123 for (ind = 0; ind < newsize; ind++) { in main() 132 if (msync(addr, newsize, MS_SYNC) != 0) { in main() 173 newsize = (memsize * 2); in setup() 205 if (lseek(fildes, (off_t) newsize, SEEK_SET) != (off_t) newsize) { in setup() 207 "error=%d : %s", newsize, errno, strerror(errno)); in setup() 229 if (munmap(addr, newsize) != 0) in cleanup()
|
D | mremap04.c | 98 int newsize; /* new size of virtual memory block */ variable 125 addr = mremap(shmaddr, memsize, newsize, 0); in main() 134 if (munmap(addr, newsize) != 0) { in main() 186 newsize = (memsize * 2); in setup() 195 shmid = shmget(shmkey, newsize, IPC_CREAT | SHM_MODE); in setup()
|
D | mremap02.c | 88 int newsize; /* new size of virtual memory block */ variable 112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); in main() 121 if (munmap(addr, newsize) != 0) { in main() 164 newsize = (memsize * 2); in setup()
|
D | mremap03.c | 89 int newsize; /* new size of virtual memory block */ variable 114 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); in main() 123 if (munmap(addr, newsize) != 0) { in main() 170 newsize = (memsize * 2); in setup()
|
/external/dtc/tests/ |
D | nopulate.c | 59 int newsize, struct_start, struct_end_old, struct_end_new, delta; in main() local 76 newsize = nopulate_struct(buf, fdt); in main() 78 verbose_printf("Nopulated structure block has new size %d\n", newsize); in main() 82 fdt2 = xmalloc(fdt_totalsize(fdt) + newsize); in main() 85 delta = newsize - fdt_size_dt_struct(fdt); in main() 87 struct_end_new = struct_start + newsize; in main() 90 memcpy(fdt2 + struct_start, buf, newsize); in main() 95 fdt_set_size_dt_struct(fdt2, newsize); in main()
|
D | del_property.c | 38 int oldsize, delsize, newsize; in main() local 81 newsize = fdt_totalsize(fdt); in main() 84 oldsize, delsize, newsize); in main() 86 if (newsize >= oldsize) in main()
|
D | del_node.c | 37 int oldsize, delsize, newsize; in main() local 114 newsize = fdt_totalsize(fdt); in main() 117 oldsize, delsize, newsize); in main() 119 if (newsize >= oldsize) in main()
|
/external/skia/third_party/lua/src/ |
D | lmem.c | 49 int newsize; in luaM_growaux_() local 53 newsize = limit; /* still have at least one free place */ in luaM_growaux_() 56 newsize = (*size)*2; in luaM_growaux_() 57 if (newsize < MINSIZEARRAY) in luaM_growaux_() 58 newsize = MINSIZEARRAY; /* minimum size */ in luaM_growaux_() 60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems); in luaM_growaux_() 61 *size = newsize; /* update only when everything else is OK */ in luaM_growaux_()
|
D | lstring.c | 64 void luaS_resize (lua_State *L, int newsize) { in luaS_resize() argument 69 if (newsize > tb->size) { in luaS_resize() 70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 79 unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */ in luaS_resize() 86 if (newsize < tb->size) { in luaS_resize() 88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); in luaS_resize() 89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 91 tb->size = newsize; in luaS_resize()
|
/external/syslinux/com32/lua/src/ |
D | lmem.c | 49 int newsize; in luaM_growaux_() local 53 newsize = limit; /* still have at least one free place */ in luaM_growaux_() 56 newsize = (*size)*2; in luaM_growaux_() 57 if (newsize < MINSIZEARRAY) in luaM_growaux_() 58 newsize = MINSIZEARRAY; /* minimum size */ in luaM_growaux_() 60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems); in luaM_growaux_() 61 *size = newsize; /* update only when everything else is OK */ in luaM_growaux_()
|
D | lstring.c | 64 void luaS_resize (lua_State *L, int newsize) { in luaS_resize() argument 69 if (newsize > tb->size) { in luaS_resize() 70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 79 unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */ in luaS_resize() 86 if (newsize < tb->size) { in luaS_resize() 88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); in luaS_resize() 89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 91 tb->size = newsize; in luaS_resize()
|
/external/syslinux/core/mem/ |
D | malloc.c | 133 size_t newsize, oldsize, xsize; in bios_realloc() local 158 newsize = (size + 2 * sizeof(struct arena_header) - 1) & ARENA_SIZE_MASK; in bios_realloc() 160 if (oldsize >= newsize && newsize >= (oldsize >> 2) && in bios_realloc() 161 oldsize - newsize < 4096) { in bios_realloc() 170 ARENA_SIZE_GET(nah->a.attrs) + oldsize >= newsize) { in bios_realloc() 183 if (xsize >= newsize) { in bios_realloc() 185 if (xsize >= newsize + 2 * sizeof(struct arena_header)) { in bios_realloc() 187 nah = (struct free_arena_header *)((char *)ah + newsize); in bios_realloc() 189 ARENA_SIZE_SET(nah->a.attrs, xsize - newsize); in bios_realloc() 190 ARENA_SIZE_SET(ah->a.attrs, newsize); in bios_realloc() [all …]
|
/external/syslinux/core/lwip/src/core/ |
D | mem.c | 366 mem_trim(void *rmem, mem_size_t newsize) in mem_trim() argument 376 newsize = LWIP_MEM_ALIGN_SIZE(newsize); in mem_trim() 378 if(newsize < MIN_SIZE_ALIGNED) { in mem_trim() 380 newsize = MIN_SIZE_ALIGNED; in mem_trim() 383 if (newsize > MEM_SIZE_ALIGNED) { in mem_trim() 405 LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); in mem_trim() 406 if (newsize > size) { in mem_trim() 410 if (newsize == size) { in mem_trim() 425 ptr2 = ptr + SIZEOF_STRUCT_MEM + newsize; in mem_trim() 443 MEM_STATS_DEC_USED(used, (size - newsize)); in mem_trim() [all …]
|
/external/icu/icu4c/source/tools/tzcode/ |
D | ialloc.c | 14 register int oldsize, newsize; in icatalloc() local 16 newsize = (new == NULL) ? 0 : strlen(new); in icatalloc() 19 else if (newsize == 0) in icatalloc() 22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc()
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | mallocstress.c | 182 size_t newsize = 0; in allocate_free() local 198 newsize = size + oldsize; in allocate_free() 202 newsize = size * 2; in allocate_free() 205 newsize = size * 3; in allocate_free() 208 newsize = size * 5; in allocate_free() 214 if (newsize < size) in allocate_free() 216 size = newsize; in allocate_free()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_dynarray.h | 64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) in util_dynarray_resize() argument 67 if(newsize > buf->capacity) in util_dynarray_resize() 70 if(newsize > newcap) in util_dynarray_resize() 71 newcap = newsize; in util_dynarray_resize() 77 buf->size = newsize; in util_dynarray_resize()
|
/external/kmod/shared/ |
D | strbuf.c | 31 static bool buf_grow(struct strbuf *buf, size_t newsize) in buf_grow() argument 36 if (newsize <= buf->size) in buf_grow() 39 if (newsize % BUF_STEP == 0) in buf_grow() 40 sz = newsize; in buf_grow() 42 sz = ((newsize / BUF_STEP) + 1) * BUF_STEP; in buf_grow()
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
D | SuballocatedIntVector.java | 166 int newsize=index+m_numblocks; in addElement() local 167 int[][] newMap=new int[newsize][]; in addElement() 206 int newsize=index+m_numblocks; in addElements() local 207 int[][] newMap=new int[newsize][]; in addElements() 264 int newsize=index+m_numblocks; in insertElementAt() local 265 int[][] newMap=new int[newsize][]; in insertElementAt() 398 int newsize=index+m_numblocks; in setElementAt() local 399 int[][] newMap=new int[newsize][]; in setElementAt()
|
/external/python/cpython2/Lib/test/ |
D | test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/external/sfntly/cpp/src/test/tinyxml/ |
D | tinystr.cpp | 70 size_type newsize = length() + len; in append() local 71 if (newsize > capacity()) in append() 73 reserve (newsize + capacity()); in append() 76 set_size(newsize); in append()
|
/external/tinyxml/ |
D | tinystr.cpp | 74 size_type newsize = length() + len; in append() local 75 if (newsize > capacity()) in append() 77 reserve (newsize + capacity()); in append() 80 set_size(newsize); in append()
|
/external/syslinux/gpxe/src/util/ |
D | padimg.pl | 26 my $newsize = ( $oldsize + $padsize ); 30 $filename, $oldsize, $newsize, $padsize, $byte; 39 truncate $filename, $newsize
|
/external/syslinux/com32/lib/ |
D | bufprintf.c | 16 size_t newsize = rv + buf->len + BUFPAD; in vbufprintf() local 19 newbuf = realloc(buf->buf, newsize); in vbufprintf() 26 buf->size = newsize; in vbufprintf()
|
/external/libopus/src/ |
D | opus_demo.c | 258 int random_framesize=0, newsize=0, delayed_celt=0; in main() local 624 frame_size = newsize; in main() 628 newsize = rand()%6; in main() 629 switch(newsize) in main() 631 case 0: newsize=sampling_rate/400; break; in main() 632 case 1: newsize=sampling_rate/200; break; in main() 633 case 2: newsize=sampling_rate/100; break; in main() 634 case 3: newsize=sampling_rate/50; break; in main() 635 case 4: newsize=sampling_rate/25; break; in main() 636 case 5: newsize=3*sampling_rate/50; break; in main() [all …]
|