Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/external/bsd/nsd/dist/
H A Dregion-allocator.c254 size_t aligned_size; in region_alloc() local
260 aligned_size = REGION_ALIGN_UP(size, ALIGNMENT); in region_alloc()
262 if (aligned_size >= region->large_object_size) { in region_alloc()
278 if (region->recycle_bin && region->recycle_bin[aligned_size]) { in region_alloc()
279 result = (void*)region->recycle_bin[aligned_size]; in region_alloc()
280 region->recycle_bin[aligned_size] = region->recycle_bin[aligned_size]->next; in region_alloc()
281 region->recycle_size -= aligned_size; in region_alloc()
282 region->unused_space += aligned_size - size; in region_alloc()
286 if (region->allocated + aligned_size > region->chunk_size) { in region_alloc()
321 region->allocated += aligned_size; in region_alloc()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DInterpStack.h31 new (grow(aligned_size<T>())) T(std::forward<Tys>(Args)...); in push()
39 shrink(aligned_size<T>()); in pop()
47 shrink(aligned_size<T>()); in discard()
52 return *reinterpret_cast<T *>(peek(aligned_size<T>())); in peek()
67 template <typename T> constexpr size_t aligned_size() const { in aligned_size() function
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_poisoning.h39 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument
43 __sanitizer_fill_shadow(aligned_beg, aligned_size, value, in FastPoisonShadow()
48 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
H A Dasan_poisoning.cpp288 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory() local
289 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory()
291 if (size == aligned_size) in PoisonAlignedStackMemory()
293 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory()
294 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
H A Dasan_globals.cpp64 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones() local
65 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
67 if (g.size != aligned_size) { in PoisonRedZones()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_poisoning.h37 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument
42 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
H A Dasan_poisoning.cc298 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory() local
299 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory()
301 if (size == aligned_size) in PoisonAlignedStackMemory()
303 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory()
304 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
H A Dasan_globals.cc63 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones() local
64 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
66 if (g.size != aligned_size) { in PoisonRedZones()
H A Dasan_malloc_linux.cc72 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool() local
74 uptr *end_mem = (uptr*)(aligned_addr + aligned_size); in PosixMemalignFromLocalPool()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_poisoning.h39 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument
44 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
H A Dasan_poisoning.cc300 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory() local
301 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory()
303 if (size == aligned_size) in PoisonAlignedStackMemory()
305 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory()
306 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
H A Dasan_globals.cc65 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones() local
66 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
68 if (g.size != aligned_size) { in PoisonRedZones()
H A Dasan_malloc_linux.cc74 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool() local
76 uptr *end_mem = (uptr*)(aligned_addr + aligned_size); in PosixMemalignFromLocalPool()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_fb.c146 int aligned_size, size; in amdgpufb_create_pinned_object() local
163 aligned_size = ALIGN(size, PAGE_SIZE); in amdgpufb_create_pinned_object()
164 ret = amdgpu_gem_object_create(adev, aligned_size, 0, domain, flags, in amdgpufb_create_pinned_object()
167 pr_err("failed to allocate framebuffer (%d)\n", aligned_size); in amdgpufb_create_pinned_object()
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_fb.c149 int aligned_size, size; in radeonfb_create_pinned_object() local
163 aligned_size = ALIGN(size, PAGE_SIZE); in radeonfb_create_pinned_object()
164 ret = radeon_gem_object_create(rdev, aligned_size, 0, in radeonfb_create_pinned_object()
168 pr_err("failed to allocate framebuffer (%d)\n", aligned_size); in radeonfb_create_pinned_object()
/netbsd-src/sys/arch/shark/ofw/
H A Dofw.c1886 vsize_t aligned_size; in ofw_claimpages() local
1893 for (aligned_size = 1; aligned_size < alloc_size; aligned_size <<= 1) in ofw_claimpages()
1900 va = (*free_pp & ~(aligned_size - 1)) - aligned_size; in ofw_claimpages()
1903 pa = ofw_claimphys(0, alloc_size, aligned_size); in ofw_claimpages()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/
H A Dmemory_resource.cc189 struct aligned_size struct
198 aligned_size(size_t sz, size_t align) noexcept in aligned_size() function
284 aligned_size<64> _M_size;
608 aligned_size<min> _M_size;
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/
H A Dbitmap_allocator.h708 struct aligned_size in _GLIBCXX_VISIBILITY()
719 char __M_unused[aligned_size<sizeof(value_type), in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
H A Dbitmap_allocator.h707 struct aligned_size in _GLIBCXX_VISIBILITY()
718 char __M_unused[aligned_size<sizeof(value_type), in _GLIBCXX_VISIBILITY()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dpac.c147 uint32_t *aligned_size) in pac_aligned_size() argument
162 *aligned_size = size; in pac_aligned_size()
/netbsd-src/external/gpl3/binutils/dist/gold/
H A Doutput.cc4341 uint64_t aligned_size = align_address(relro_size, max_align); in set_section_addresses() local
4343 last_relro_pad = aligned_size - relro_size; in set_section_addresses()
4349 uint64_t desired_align = page_align - (aligned_size % page_align); in set_section_addresses()
/netbsd-src/external/gpl3/binutils.old/dist/gold/
H A Doutput.cc4340 uint64_t aligned_size = align_address(relro_size, max_align); in set_section_addresses() local
4342 last_relro_pad = aligned_size - relro_size; in set_section_addresses()
4348 uint64_t desired_align = page_align - (aligned_size % page_align); in set_section_addresses()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree.cc12628 tree aligned_size = TREE_OPERAND (exp, 3); in array_ref_element_size() local
12634 if (aligned_size) in array_ref_element_size()
12638 if (TREE_TYPE (aligned_size) != sizetype) in array_ref_element_size()
12639 aligned_size = fold_convert_loc (loc, sizetype, aligned_size); in array_ref_element_size()
12640 return size_binop_loc (loc, MULT_EXPR, aligned_size, in array_ref_element_size()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtree.c13424 tree aligned_size = TREE_OPERAND (exp, 3); in array_ref_element_size() local
13430 if (aligned_size) in array_ref_element_size()
13434 if (TREE_TYPE (aligned_size) != sizetype) in array_ref_element_size()
13435 aligned_size = fold_convert_loc (loc, sizetype, aligned_size); in array_ref_element_size()
13436 return size_binop_loc (loc, MULT_EXPR, aligned_size, in array_ref_element_size()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/
H A DChangeLog-20203291 * src/c++17/memory_resource.cc (aligned_size): New class template.
3295 with an aligned_size member. Remove _M_canary member. Change _M_next
3303 (big_block): Replace _M_size and _M_align with aligned_size
3306 (big_block::size, big_block::align): Adjust to use aligned_size.

12