Searched refs:alignment (Results 1 - 25 of 189) sorted by relevance

12345678

/haiku/src/libs/compat/freebsd_network/compat/vm/
H A Dvm_extern.h39 * Is pa a multiple of alignment, which is a power-of-two?
42 vm_addr_align_ok(vm_paddr_t pa, u_long alignment) argument
44 KASSERT(powerof2(alignment), ("%s: alignment is not a power of 2: %#lx",
45 __func__, alignment)); local
46 return ((pa & (alignment - 1)) == 0);
62 vm_addr_ok(vm_paddr_t pa, vm_paddr_t size, u_long alignment, argument
65 return (vm_addr_align_ok(pa, alignment) &&
/haiku/src/system/libroot/posix/malloc_hoard2/
H A Dthreadheap.h43 inline void *memalign(size_t alignment, size_t sz);
67 threadHeap::memalign(size_t alignment, size_t size) argument
70 // to satisfy the alignment requirements.
74 // If the alignment is less than the required alignment,
76 if (alignment <= ALIGNMENT)
79 if (alignment < sizeof(block))
80 alignment = sizeof(block);
83 assert((alignment & (alignment
[all...]
/haiku/src/apps/debugger/user_interface/gui/value/
H A DTableCellValueRendererUtils.h21 enum alignment alignment,
H A DTableCellValueRendererUtils.cpp19 const char* string, bool valueChanged, enum alignment alignment,
35 // compute horizontal position according to alignment
37 switch (alignment) {
18 DrawString(BView* view, BRect rect, const char* string, bool valueChanged, enum alignment alignment, bool truncate) argument
/haiku/headers/os/interface/
H A DAlignment.h12 alignment horizontal;
17 inline BAlignment(alignment horizontal,
20 inline alignment Horizontal() const;
26 inline void SetHorizontal(alignment horizontal);
57 BAlignment::BAlignment(alignment horizontal, vertical_alignment vertical)
64 inline alignment
79 BAlignment::SetHorizontal(alignment horizontal)
H A DLayoutUtils.h37 static BAlignment ComposeAlignment(BAlignment alignment,
41 BAlignment alignment);
43 static BRect AlignOnRect(BRect rect, BSize size, BAlignment alignment);
H A DSeparatorView.h22 const BAlignment& alignment
29 const BAlignment& alignment
35 const BAlignment& alignment
41 const BAlignment& alignment
88 BAlignment alignment, border_style border);
/haiku/src/apps/debuganalyzer/gui/table/
H A DTableColumn.h22 alignment align);
31 alignment Alignment() const { return fAlignment; }
48 alignment fAlignment;
H A DTableColumns.h20 alignment align);
45 alignment align = B_ALIGN_LEFT);
68 alignment align = B_ALIGN_LEFT);
88 alignment align = B_ALIGN_RIGHT);
104 alignment align = B_ALIGN_RIGHT);
121 alignment align = B_ALIGN_RIGHT);
141 alignment align = B_ALIGN_RIGHT);
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dmisc.cpp36 memalign_etc(size_t alignment, size_t size, uint32 flags) argument
38 return memalign(alignment, size);
H A Dslab.cpp15 size_t alignment, size_t maxByteUsage, uint32 flags, void *cookie,
35 size_t alignment, void *cookie, object_cache_constructor constructor,
38 return new(std::nothrow) ObjectCache(name, objectSize, alignment,
45 size_t alignment, size_t maxByteUsage, size_t magazineCapacity,
50 return new(std::nothrow) ObjectCache(name, objectSize, alignment,
14 ObjectCache(const char *name, size_t objectSize, size_t alignment, size_t maxByteUsage, uint32 flags, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor, object_cache_reclaimer reclaimer) argument
34 create_object_cache(const char *name, size_t objectSize, size_t alignment, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor) argument
44 create_object_cache_etc(const char *name, size_t objectSize, size_t alignment, size_t maxByteUsage, size_t magazineCapacity, size_t maxMagazineCount, uint32 flags, void *cookie, object_cache_constructor constructor, object_cache_destructor destructor, object_cache_reclaimer reclaimer) argument
/haiku/src/tests/kits/interface/layout/widget_layout_test/
H A DStringView.h19 void SetAlignment(alignment align);
35 alignment fAlignment;
/haiku/src/apps/debugger/user_interface/gui/util/
H A DTargetAddressTableColumn.h18 alignment align = B_ALIGN_RIGHT);
/haiku/src/kits/debugger/dwarf/
H A DCfaContext.cpp98 CfaContext::SetCodeAlignment(uint32 alignment) argument
100 fCodeAlignment = alignment;
105 CfaContext::SetDataAlignment(int32 alignment) argument
107 fDataAlignment = alignment;
/haiku/headers/private/kernel/boot/
H A Dstage2.h28 extern void *kernel_args_malloc(size_t size, uint8 alignment = 1);
/haiku/src/system/kernel/slab/
H A Dallocator.cpp74 block_alloc(size_t size, size_t alignment, uint32 flags) argument
76 if (alignment > kMinObjectAlignment) {
77 // Make size >= alignment and a power of two. This is sufficient, since
80 // in the kernel and always with power of two size == alignment anyway.
81 ASSERT((alignment & (alignment - 1)) == 0);
82 while (alignment < size)
83 alignment <<= 1;
84 size = alignment;
175 size_t alignment local
209 memalign(size_t alignment, size_t size) argument
216 memalign_etc(size_t alignment, size_t size, uint32 flags) argument
223 posix_memalign(void** _pointer, size_t alignment, size_t size) argument
[all...]
H A DObjectCache.cpp45 ObjectCache::Init(const char* name, size_t objectSize, size_t alignment, argument
57 if (alignment < kMinObjectAlignment)
58 alignment = kMinObjectAlignment;
60 if (alignment > 0 && (objectSize & (alignment - 1)))
61 object_size = objectSize + alignment - (objectSize & (alignment - 1));
65 TRACE_CACHE(this, "init %lu, %lu -> %lu", objectSize, alignment,
68 this->alignment = alignment;
[all...]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dmalloc.h39 vm_paddr_t low, vm_paddr_t high, unsigned long alignment,
49 #define kernel_contigmalloc(size, type, flags, low, high, alignment, boundary) \
51 alignment, boundary)
59 # define contigmalloc(size, type, flags, low, high, alignment, boundary) \
61 alignment, boundary)
/haiku/src/kits/interface/
H A DLayoutUtils.cpp147 BLayoutUtils::ComposeAlignment(BAlignment alignment, BAlignment layoutAlignment) argument
149 if (!alignment.IsHorizontalSet())
150 alignment.horizontal = layoutAlignment.horizontal;
151 if (!alignment.IsVerticalSet())
152 alignment.vertical = layoutAlignment.vertical;
154 return alignment;
162 BLayoutUtils::AlignInFrame(BRect frame, BSize maxSize, BAlignment alignment) argument
164 // align according to the given alignment
166 && alignment.horizontal != B_ALIGN_USE_FULL_WIDTH) {
168 * alignment
187 BAlignment alignment = view->LayoutAlignment(); local
216 AlignOnRect(BRect rect, BSize size, BAlignment alignment) argument
[all...]
H A DSpaceLayoutItem.cpp19 const char* const kAlignmentField = "BSpaceLayoutItem:alignment";
33 BSize preferredSize, BAlignment alignment)
39 fAlignment(alignment),
163 BSpaceLayoutItem::SetExplicitAlignment(BAlignment alignment) argument
165 if (alignment.IsHorizontalSet())
166 fAlignment.horizontal = alignment.horizontal;
167 if (alignment.IsVerticalSet())
168 fAlignment.vertical = alignment.vertical;
32 BSpaceLayoutItem(BSize minSize, BSize maxSize, BSize preferredSize, BAlignment alignment) argument
/haiku/src/tests/system/libroot/posix/
H A Dmemalign_test.cpp77 allocate_random_fixed_alignment(int32 count, size_t maxSize, size_t alignment) argument
83 allocations[i] = memalign(alignment, sizes[i]);
89 if ((addr_t)allocations[i] % alignment != 0) {
91 " with alignment %lu (0x%08lx)\n", sizes[i],
92 allocations[i], (addr_t)allocations[i] % alignment, alignment,
93 alignment);
/haiku/headers/posix/
H A Dmalloc.h20 extern void *memalign(size_t alignment, size_t numBytes) _ALIGNED_BY_ARG(1);
/haiku/src/libs/glut/
H A Dglut_bitmap.c22 GLint skiprows, skippixels, alignment; local
41 glGetIntegerv(GL_UNPACK_ALIGNMENT, &alignment);
60 glPixelStorei(GL_UNPACK_ALIGNMENT, alignment);
/haiku/src/system/kernel/vm/
H A DVMUserAddressSpace.cpp64 align_address(addr_t address, size_t alignment) argument
66 return ROUNDUP(address, alignment);
71 align_address(addr_t address, size_t alignment, uint32 addressSpec, argument
76 return align_address(address, alignment);
198 addressRestrictions->alignment, area, allocationFlags);
421 size_t alignment, bool initial)
423 ASSERT((start & addr_t(alignment - 1)) == 0);
437 random &= ~addr_t(alignment - 1);
519 uint32 addressSpec, size_t alignment, VMUserArea* area,
543 if (alignment
420 _RandomizeAddress(addr_t start, addr_t end, size_t alignment, bool initial) argument
518 _InsertAreaSlot(addr_t start, addr_t size, addr_t end, uint32 addressSpec, size_t alignment, VMUserArea* area, uint32 allocationFlags) argument
[all...]
/haiku/src/tools/anyboot/
H A Danyboot.cpp270 off_t alignment = 1 * 1024 * 1024 - 1;
271 off_t imageOffset = (isoSize + alignment) & ~alignment;
282 alignment = kBlockSize - 1;
283 imageSize = (imageSize + alignment) & ~alignment;
288 off_t efiOffset = (imageOffset + imageSize + alignment) & ~alignment;
289 efiSize = (efiSize + alignment) & ~alignment;
[all...]

Completed in 316 milliseconds

12345678