Home
last modified time | relevance | path

Searched refs:SIZE_SZ (Results 1 – 25 of 184) sorted by relevance

12345678

/dports/textproc/bibtool/BibTool/regex-0.12/test/
H A Dg++malloc.c326 #define SIZE_SZ (sizeof(unsigned int)) macro
327 #define MALLOC_MIN_OVERHEAD (SIZE_SZ + SIZE_SZ)
611 p->size = *((int*)((char*)(p) + sz - SIZE_SZ)) = sz; in set_size()
623 mem = (void*)((char*)(p) + SIZE_SZ); in chunk2mem()
630 mchunkptr p = (mchunkptr)((char*)(mem) - SIZE_SZ); in sanity_check()
645 mchunkptr p = (mchunkptr)((char*)(mem) - SIZE_SZ); in mem2chunk()
777 sbrk_size = ((nb + SBRK_UNIT - 1 + SIZE_SZ + SIZE_SZ) in malloc_from_sys()
804 *ip++ = SIZE_SZ | INUSE; in malloc_from_sys()
807 set_size(p,sbrk_size - (SIZE_SZ + SIZE_SZ)); in malloc_from_sys()
837 *last_sbrk_end = SIZE_SZ | INUSE; in malloc_from_sys()
[all …]
/dports/lang/yap/yap-6.2.2/H/
H A Ddlmalloc.h240 #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) macro
254 #define MALLOC_ALIGNMENT (2 * SIZE_SZ)
1184 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ))
1185 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
1213 (((req) + SIZE_SZ + MALLOC_ALIGN_MASK < MINSIZE) ? \
1215 ((req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK)
1354 #define bin_at(m, i) ((mbinptr)((char*)&((m)->bins[(i)<<1]) - (SIZE_SZ<<1)))
/dports/devel/tinygo/tinygo-0.14.1/lib/picolibc/newlib/libc/machine/powerpc/
H A Dvec_mallocr.c203 #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) macro
211 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ))
212 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
216 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
218 (((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) & ~(MALLOC_ALIGN_MASK)))
365 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/machine/powerpc/
H A Dvec_mallocr.c203 #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) macro
211 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ))
212 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
216 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
218 (((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) & ~(MALLOC_ALIGN_MASK)))
365 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/machine/powerpc/
H A Dvec_mallocr.c203 #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) macro
211 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ))
212 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
216 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
218 (((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) & ~(MALLOC_ALIGN_MASK)))
365 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/machine/powerpc/
H A Dvec_mallocr.c203 #define SIZE_SZ (sizeof(INTERNAL_SIZE_T))
211 #define chunk2mem(p) ((Void_t*)((char*)(p) + 2*SIZE_SZ))
212 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
216 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
218 (((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) & ~(MALLOC_ALIGN_MASK)))
365 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
/dports/games/ldmud/ldmud-3.3.720/src/ptmalloc/
H A Dhooks.c154 for(i = chunksize(p) - (chunk_is_mmapped(p) ? 2*SIZE_SZ+1 : SIZE_SZ+1);
196 for(sz += SIZE_SZ-1; (c = ((unsigned char*)p)[sz]) != magic; sz -= c) {
197 if(c<=0 || sz<(c+2*SIZE_SZ)) return NULL;
217 if(c<=0 || sz<(c+2*SIZE_SZ)) return NULL;
311 memset(mem, 0, chunksize(p) - (SIZE_SZ+1));
355 if(oldsize - SIZE_SZ >= nb)
362 MALLOC_COPY(BOUNDED_N(newmem, bytes+1), oldmem, oldsize - 2*SIZE_SZ);
377 oldsize - (2*sizeof(mbinptr)+2*SIZE_SZ+1));
378 } else if(nb > oldsize+SIZE_SZ) {
380 0, nb - (oldsize+SIZE_SZ));
/dports/devel/ptmalloc2/ptmalloc2/
H A Dhooks.c140 for(i = chunksize(p) - (chunk_is_mmapped(p) ? 2*SIZE_SZ+1 : SIZE_SZ+1);
183 for(sz += SIZE_SZ-1; (c = ((unsigned char*)p)[sz]) != magic; sz -= c) {
184 if(c<=0 || sz<(c+2*SIZE_SZ)) return NULL;
204 if(c<=0 || sz<(c+2*SIZE_SZ)) return NULL;
303 memset(mem, 0, chunksize(p) - (SIZE_SZ+1));
347 if(oldsize - SIZE_SZ >= nb)
354 MALLOC_COPY(BOUNDED_N(newmem, bytes+1), oldmem, oldsize - 2*SIZE_SZ);
369 oldsize - (2*sizeof(mbinptr)+2*SIZE_SZ+1));
370 } else if(nb > oldsize+SIZE_SZ) {
372 0, nb - (oldsize+SIZE_SZ));
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-olinuxino-lime2-emmc/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-cubox-hummingboard/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-cubieboard2/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-cubieboard/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-firefly-rk3399/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-a13-olinuxino/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-a64-olinuxino/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-sopine/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-qemu-arm64/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/u-boot/common/
H A Ddlmalloc.c356 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
368 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
779 assert(sz == SIZE_SZ);
949 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1153 SIZE_SZ|PREV_INUSE;
1155 SIZE_SZ|PREV_INUSE;
1792 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1804 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2115 MALLOC_ZERO(mem, csz - SIZE_SZ);
2248 return chunksize(p) - SIZE_SZ;
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot/common/
H A Ddlmalloc.c356 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
368 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
779 assert(sz == SIZE_SZ);
949 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1153 SIZE_SZ|PREV_INUSE;
1155 SIZE_SZ|PREV_INUSE;
1792 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1804 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2115 MALLOC_ZERO(mem, csz - SIZE_SZ);
2248 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-nanopi-r4s/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-nanopi-neo/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-nanopi-m1plus/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]
/dports/sysutils/u-boot-nanopi-neo-air/u-boot-2021.07/common/
H A Ddlmalloc.c369 #define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ)
381 (((long)((req) + (SIZE_SZ + MALLOC_ALIGN_MASK)) < \
829 assert(sz == SIZE_SZ);
999 size = (size + SIZE_SZ + page_mask) & ~page_mask;
1200 SIZE_SZ|PREV_INUSE;
1202 SIZE_SZ|PREV_INUSE;
1839 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
1851 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
2161 MALLOC_ZERO(mem, csz - SIZE_SZ);
2294 return chunksize(p) - SIZE_SZ;
[all …]

12345678