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

12345678

/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/headers/posix/
H A Dmalloc.h20 extern void *memalign(size_t alignment, size_t numBytes);
/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/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.cpp44 ObjectCache::Init(const char* name, size_t objectSize, size_t alignment, argument
56 if (alignment < kMinObjectAlignment)
57 alignment = kMinObjectAlignment;
59 if (alignment > 0 && (objectSize & (alignment - 1)))
60 object_size = objectSize + alignment - (objectSize & (alignment - 1));
64 TRACE_CACHE(this, "init %lu, %lu -> %lu", objectSize, alignment,
67 this->alignment = alignment;
[all...]
/haiku/src/system/libroot/posix/rpmalloc/
H A Dwrapper.cpp122 memalign(size_t alignment, size_t size) argument
124 void* addr = rpmemalign(alignment, size);
127 KTRACE("memalign(%lu, %lu) -> NULL", alignment, size);
131 KTRACE("memalign(%lu, %lu) -> %p", alignment, size, addr);
138 posix_memalign(void** _pointer, size_t alignment, size_t size) argument
143 status_t status = rpposix_memalign(_pointer, alignment, size);
144 KTRACE("posix_memalign(%p, %lu, %lu) -> %s, %p", _pointer, alignment,
/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/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/build/libbe/interface/
H A DGraphicsDefs.cpp127 size_t alignment = 0; local
129 alignment = (sizeof(int) % bytesPerPixel) * sizeof(int);
130 if (alignment < sizeof(int))
131 alignment = sizeof(int);
135 *rowAlignment = alignment;
/haiku/headers/private/interface/
H A DColumnTypes.h31 float maxWidth, alignment align = B_ALIGN_LEFT);
79 alignment align = B_ALIGN_LEFT);
120 alignment align = B_ALIGN_LEFT);
151 alignment align = B_ALIGN_LEFT);
179 alignment align = B_ALIGN_LEFT);
207 alignment align = B_ALIGN_LEFT);
222 alignment align = B_ALIGN_LEFT);
/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);
199 addressRestrictions->alignment, area, allocationFlags);
423 size_t alignment, bool initial)
425 ASSERT((start & addr_t(alignment - 1)) == 0);
439 random &= ~addr_t(alignment - 1);
527 uint32 addressSpec, size_t alignment, VMUserArea* area,
556 if (alignment
422 _RandomizeAddress(addr_t start, addr_t end, size_t alignment, bool initial) argument
526 _InsertAreaSlot(addr_t start, addr_t size, addr_t end, uint32 addressSpec, size_t alignment, VMUserArea* area, uint32 allocationFlags) argument
[all...]

Completed in 176 milliseconds

12345678