Home
last modified time | relevance | path

Searched refs:MEM_ALIGN (Results 1 – 25 of 1208) sorted by relevance

12345678910>>...49

/dports/shells/ast-ksh/ast-ksh93v/src/lib/libast/vmalloc/
H A Dvmopen.c100 /**/DEBUG_ASSERT(VMLONG(vd)%MEM_ALIGN == 0);
103 addr -= ROUND(sizeof(Vmalloc_t), MEM_ALIGN);
113 vmsz = (mode&VM_MEMORYF) ? ROUND(sizeof(Vmalloc_t),MEM_ALIGN) : 0;
121 vdsz = ROUND(vdsz, MEM_ALIGN);
123 sgsz = ROUND(sizeof(Seg_t), MEM_ALIGN); /* size of segment structure */
127 size = ROUND(size,incr); /**/DEBUG_ASSERT(size%MEM_ALIGN == 0 );
139 if((algn = (ssize_t)(VMLONG(base)%MEM_ALIGN)) == 0 )
141 else addr = base + (MEM_ALIGN-algn);
142 /**/DEBUG_ASSERT(VMLONG(addr)%MEM_ALIGN == 0 );
145 vd = (Vmdata_t*)(addr + vmsz); /**/DEBUG_ASSERT(VMLONG(vd)%MEM_ALIGN == 0);
[all …]
H A Dvmhdr.h163 #define INITMEMORY(m,z) ((m) ? (memset((m), 'i', (z) > 2*MEM_ALIGN ? 2*MEM_ALIGN : (z)), 0) : 0 )
164 #define SETBUSYMEM(m,z) (memset(((char*)(m))+2*MEM_ALIGN, 'b', (z) <= 2*MEM_ALIGN ? 0 : MEM_ALIGN )…
165 #define CHKBUSYMEM(m,z) (memcmp(((char*)(m))+2*MEM_ALIGN, "bbbbbbbb", (z) <= 2*MEM_ALIGN ? 0 : 8) =…
166 #define SETFREEMEM(m,z) (memset(((char*)(m))+2*MEM_ALIGN, 'f', (z) <= 2*MEM_ALIGN ? 0 : MEM_ALIGN )…
167 #define CHKFREEMEM(m,z) (memcmp(((char*)(m))+2*MEM_ALIGN, "ffffffff", (z) <= 2*MEM_ALIGN ? 0 : 8) =…
241 #undef MEM_ALIGN /* Blocks will be aligned on both ALIGNA & ALIGNB */
243 #define MEM_ALIGN MULTIPLE(ALIGNAB, sizeof(struct _two_s)) macro
255 #define HEADSIZE ROUND(sizeof(struct _head_s), MEM_ALIGN)
267 #define BODYSIZE ROUND(sizeof(struct _body_s), MEM_ALIGN)
324 #define SEGDATA(sg) ((Vmuchar_t*)(sg) + ROUND(sizeof(Seg_t),MEM_ALIGN) )
H A Dvmlast.c64 size = size < MEM_ALIGN ? MEM_ALIGN : ROUND(size,MEM_ALIGN);
122 { size = last->data - last->last; /**/DEBUG_ASSERT(size > 0 && size%MEM_ALIGN == 0);
169 { oldz = last->data - last->last; /**/DEBUG_ASSERT(oldz > 0 && oldz%MEM_ALIGN == 0);
170 size = ROUND(size, MEM_ALIGN);
252 size = ROUND(size,MEM_ALIGN);
H A Dvmbest.c67 #define SM_RND0 (1*MEM_ALIGN) /* round value: 1*MEM_ALIGN == 16 */
73 #define SM_RND1 (2*MEM_ALIGN) /* round value: 2*MEM_ALIGN == 32 */
79 #define SM_RND2 (4*MEM_ALIGN) /* round value: 4*MEM_ALIGN == 64 */
170 /**/DEBUG_ASSERT(BDSZ(node) >= BODYSIZE && (BDSZ(node)%MEM_ALIGN) == 0 ); in chktree()
386 { /**/DEBUG_ASSERT((size%MEM_ALIGN) == 0 && !(SIZE(root)&(BUSY|PFREE)) ); in bestpackextract()
511 /**/DEBUG_ASSERT(BDSZ(fp) >= sizeof(Body_t) && BDSZ(fp)%MEM_ALIGN == 0); in bestlistreclaim()
566 /**/DEBUG_ASSERT(size >= sizeof(Body_t) && size%MEM_ALIGN == 0); in bestpackalloc()
722 /**/DEBUG_ASSERT((MEM_ALIGN%(BITS+1)) == 0 ); in bestalloc()
723 /**/DEBUG_ASSERT((sizeof(Head_t)%MEM_ALIGN) == 0 ); in bestalloc()
724 /**/DEBUG_ASSERT((sizeof(Body_t)%MEM_ALIGN) == 0 ); in bestalloc()
[all …]
H A Dvmsegment.c197 size = (size/MEM_ALIGN)*MEM_ALIGN; /* must be multiple of MEM_ALIGN's */ in _vmseginit()
259 /**/DEBUG_ASSERT(_Vmpagesize > 0 && _Vmpagesize%MEM_ALIGN == 0 ); in _vmsegalloc()
384 if((sz = (size_t)(VMLONG(base)%MEM_ALIGN)) == 0) in _vmsegalloc()
386 else seg = (Seg_t*)(base + MEM_ALIGN-sz); in _vmsegalloc()
/dports/mail/dovecot/dovecot-2.3.17/src/lib/
H A Dmempool-alloconly.c117 # define POOL_ALLOCONLY_MAX_EXTRA MEM_ALIGN(1)
120 (MEM_ALIGN(sizeof(size_t)) + MEM_ALIGN(1) + MEM_ALIGN(SENTRY_COUNT))
205 i += MEM_ALIGN(sizeof(alloc_size)); in check_sentries()
206 max_pos = i + MEM_ALIGN(alloc_size + SENTRY_COUNT); in check_sentries()
232 MEM_ALIGN(sizeof(struct alloconly_pool) + SENTRY_COUNT); in pool_alloconly_create()
238 min_alloc += MEM_ALIGN(strlen(name) + 1 + SENTRY_COUNT) + in pool_alloconly_create()
388 alloc_size = MEM_ALIGN(size); in pool_alloconly_malloc()
390 alloc_size = MEM_ALIGN(sizeof(size)) + MEM_ALIGN(size + SENTRY_COUNT); in pool_alloconly_malloc()
405 mem = PTR_OFFSET(mem, MEM_ALIGN(sizeof(size))); in pool_alloconly_malloc()
408 MEM_ALIGN(size + SENTRY_COUNT) - size); in pool_alloconly_malloc()
[all …]
H A Ddata-stack.c23 # define ALLOC_SIZE(size) (MEM_ALIGN(sizeof(size_t)) + MEM_ALIGN(size + SENTRY_COUNT))
28 # define ALLOC_SIZE(size) MEM_ALIGN(size)
47 #define SIZEOF_MEMBLOCK MEM_ALIGN(sizeof(struct stack_block))
121 p = last_alloc_end + MEM_ALIGN(sizeof(size_t)) + last_buffer_size; in data_stack_last_buffer_reset()
261 pos += MEM_ALIGN(sizeof(size_t)) + requested_size; in t_pop_verify()
529 ret = PTR_OFFSET(ret, MEM_ALIGN(sizeof(size))); in t_malloc_real()
533 MEM_ALIGN(size + SENTRY_COUNT) - size); in t_malloc_real()
571 debug_adjust = MEM_ALIGN(sizeof(size_t)); in t_try_realloc()
598 *(size_t *)PTR_OFFSET(mem, -(ptrdiff_t)MEM_ALIGN(sizeof(size_t))) = size; in t_try_realloc()
600 new_alloc_size - size - MEM_ALIGN(sizeof(size_t))); in t_try_realloc()
[all …]
/dports/textproc/senna/senna-1.1.5/lib/
H A Dcache.c52 #define MEM_ALIGN sen_cache_block macro
54 #define CACHE_NUM (CACHE_SIZE / MEM_ALIGN) /* number of cache data */
114 snprintf (shm_name, PATH_MAX, "%s_%d", CACHE_DATA_SHM_NAME, MEM_ALIGN); in sen_cache_init()
152 snprintf (shm_name, PATH_MAX, "%s_%d", CACHE_BIN_SHM_NAME, MEM_ALIGN); in sen_cache_init()
182 snprintf (shm_name, PATH_MAX, "%s_%d", CACHE_HASH_SHM_NAME, MEM_ALIGN); in sen_cache_init()
227 snprintf (shm_name, PATH_MAX, "%s_%d", CACHE_BIN_SHM_NAME, MEM_ALIGN); in sen_cache_open()
395 oper->iocb->aio_buf = p = cache_bin + (cd->num * MEM_ALIGN); in sen_cache_read()
409 p = cache_bin + (cd->num * MEM_ALIGN); in sen_cache_read()
418 p = cache_bin + (cd->num * MEM_ALIGN); in sen_cache_read()
502 off_t voffset = offset - (offset % MEM_ALIGN); in sen_cache_mark_invalid()
[all …]
/dports/dns/ldapdns/ldapdns-2.07/
H A Dmem.c8 static align_t local_store[MEM_PRE / MEM_ALIGN];
22 bytes = MEM_ALIGN + bytes - (bytes & (MEM_ALIGN - 1)); in mem_alloc()
H A Dmem.h4 #ifndef MEM_ALIGN
5 #define MEM_ALIGN 16 macro
8 typedef union { char __x[MEM_ALIGN]; double __y; } align_t;
/dports/math/eprover/eprover-E-2.0/BASICS/
H A Dclb_newmem.c197 mem_index = (size+MEM_ALIGN-1)/MEM_ALIGN; in SizeMallocReal()
263 mem_index = (size+MEM_ALIGN-1)/MEM_ALIGN; in SizeFreeReal()
305 size = mem_index*MEM_ALIGN; in MemAddNewChunk()
H A Dclb_newmem.h54 #define MEM_ALIGN 16 macro
55 #define MEM_CHUNKLIMIT (4096/MEM_ALIGN) /* Objects smaller than this are
/dports/audio/jack/jack2-eaedec353489f26617221d66f80fd2503953c663/macosx/
H A DJackCompilerDeps_os.h27 #define MEM_ALIGN(x,y) x __attribute__((aligned(y))) macro
35 #define MEM_ALIGN(x,y) x macro
/dports/audio/jack/jack2-eaedec353489f26617221d66f80fd2503953c663/android/
H A DJackCompilerDeps_os.h28 #define MEM_ALIGN(x,y) x __attribute__((aligned(y))) macro
41 #define MEM_ALIGN(x,y) x macro
/dports/audio/jack/jack2-eaedec353489f26617221d66f80fd2503953c663/posix/
H A DJackCompilerDeps_os.h27 #define MEM_ALIGN(x,y) x __attribute__((aligned(y))) macro
40 #define MEM_ALIGN(x,y) x macro
/dports/games/retroarch/RetroArch-1.9.7/wii/libogc/include/lwip/
H A Dmem.h55 #ifndef MEM_ALIGN
56 #define MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNM… macro
/dports/audio/jack/jack2-eaedec353489f26617221d66f80fd2503953c663/windows/
H A DJackCompilerDeps_os.h34 #define MEM_ALIGN(x,y) x __attribute__((aligned(y))) macro
38 #define MEM_ALIGN(x,y) x macro
/dports/games/retroarch/RetroArch-1.9.7/wii/libogc/lwip/core/
H A Dmemp.c165 m->next = (struct memp *)MEM_ALIGN((u8_t *)m + size); in memp_init()
215 ((mem_ptr_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0); in memp_malloc()
217 mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp)); in memp_malloc()
H A Dpbuf.c103 pbuf_pool = (struct pbuf *)MEM_ALIGN(pbuf_pool_memory); in pbuf_init()
115 p->payload = MEM_ALIGN((void *)((u8_t *)p + sizeof(struct pbuf))); in pbuf_init()
254 p->payload = MEM_ALIGN((void *)((u8_t *)p + (sizeof(struct pbuf) + offset))); in pbuf_alloc()
310 p->payload = MEM_ALIGN((void *)((u8_t *)p + sizeof(struct pbuf) + offset)); in pbuf_alloc()
/dports/mail/dovecot/dovecot-2.3.17/src/plugins/fts-squat/
H A Dsquat-trie-private.h98 MEM_ALIGN((_node)->child_count)))
101 (MEM_ALIGN(child_count) + \
/dports/lang/mono/mono-5.10.1.57/mono/metadata/
H A Dmempool.c30 #define MEM_ALIGN 8 macro
31 #define ALIGN_SIZE(s) (((s) + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1))
/dports/games/chocolate-doom/chocolate-doom-3.0.1/src/
H A Dz_zone.c39 #define MEM_ALIGN sizeof(void *) macro
261 size = (size + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1); in Z_Malloc()
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/src/
H A Dz_zone.c39 #define MEM_ALIGN sizeof(void *) macro
261 size = (size + MEM_ALIGN - 1) & ~(MEM_ALIGN - 1); in Z_Malloc()
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/config/sh/
H A Dsh-mem.cc65 && MEM_ALIGN (operands[0]) >= 32 in expand_block_move()
220 const unsigned int addr1_alignment = MEM_ALIGN (operands[1]) / BITS_PER_UNIT; in sh_expand_cmpstr()
221 const unsigned int addr2_alignment = MEM_ALIGN (operands[2]) / BITS_PER_UNIT; in sh_expand_cmpstr()
360 const unsigned int addr1_alignment = MEM_ALIGN (operands[1]) / BITS_PER_UNIT; in sh_expand_cmpnstr()
361 const unsigned int addr2_alignment = MEM_ALIGN (operands[2]) / BITS_PER_UNIT; in sh_expand_cmpnstr()
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/config/sh/
H A Dsh-mem.cc65 && MEM_ALIGN (operands[0]) >= 32 in expand_block_move()
220 const unsigned int addr1_alignment = MEM_ALIGN (operands[1]) / BITS_PER_UNIT; in sh_expand_cmpstr()
221 const unsigned int addr2_alignment = MEM_ALIGN (operands[2]) / BITS_PER_UNIT; in sh_expand_cmpstr()
360 const unsigned int addr1_alignment = MEM_ALIGN (operands[1]) / BITS_PER_UNIT; in sh_expand_cmpnstr()
361 const unsigned int addr2_alignment = MEM_ALIGN (operands[2]) / BITS_PER_UNIT; in sh_expand_cmpnstr()

12345678910>>...49