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

1234567891011>>

/macosx-10.10/JavaScriptCore-7600.1.17/ftl/
H A DFTLDataSection.cpp37 DataSection::DataSection(size_t size, unsigned alignment) argument
40 RELEASE_ASSERT(WTF::bitCount(alignment) == 1);
44 alignment = std::max(nativeAlignment, alignment);
46 size_t allocatedSize = size + alignment - nativeAlignment;
50 (bitwise_cast<uintptr_t>(m_allocationBase) + alignment - 1) & ~static_cast<uintptr_t>(alignment - 1));
52 RELEASE_ASSERT(!(bitwise_cast<uintptr_t>(m_base) & (alignment - 1)));
H A DFTLDataSection.h39 DataSection(size_t, unsigned alignment);
/macosx-10.10/Security-57031.1.35/Security/include/security_utilities/
H A Dmemutils.h45 // The default system alignment.
51 // Get the local alignment for a type, as used by the acting compiler.
71 // Round up a size or pointer to an alignment boundary.
72 // Alignment must be a power of two; default is default alignment.
74 inline size_t alignUp(size_t size, size_t alignment = systemAlignment)
76 return ((size - 1) & ~(alignment - 1)) + alignment;
79 inline void *alignUp(void *p, size_t alignment = systemAlignment)
81 return reinterpret_cast<void *>(alignUp(uintptr_t(p), alignment));
84 inline const void *alignUp(const void *p, size_t alignment
104 increment(const void *p, ptrdiff_t offset, size_t alignment) argument
108 increment(void *p, ptrdiff_t offset, size_t alignment) argument
111 increment(const void *p, ptrdiff_t offset, size_t alignment) argument
114 increment(void *p, ptrdiff_t offset, size_t alignment) argument
[all...]
/macosx-10.10/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dmemutils.h45 // The default system alignment.
51 // Get the local alignment for a type, as used by the acting compiler.
71 // Round up a size or pointer to an alignment boundary.
72 // Alignment must be a power of two; default is default alignment.
74 inline size_t alignUp(size_t size, size_t alignment = systemAlignment)
76 return ((size - 1) & ~(alignment - 1)) + alignment;
79 inline void *alignUp(void *p, size_t alignment = systemAlignment)
81 return reinterpret_cast<void *>(alignUp(uintptr_t(p), alignment));
84 inline const void *alignUp(const void *p, size_t alignment
104 increment(const void *p, ptrdiff_t offset, size_t alignment) argument
108 increment(void *p, ptrdiff_t offset, size_t alignment) argument
111 increment(const void *p, ptrdiff_t offset, size_t alignment) argument
114 increment(void *p, ptrdiff_t offset, size_t alignment) argument
[all...]
/macosx-10.10/tcl-105/tk84/tk/generic/
H A DtkImgUtil.c39 TkAlignImageData(image, alignment, bitOrder)
41 int alignment; /* Number of bytes to which the data should
58 if (dataWidth % alignment) {
59 dataWidth += (alignment - (dataWidth % alignment));
/macosx-10.10/WTF-7600.1.24/wtf/
H A DTCSystemAlloc.cpp58 // Structure for discovering alignment
106 static void* TrySbrk(size_t size, size_t *actual_size, size_t alignment) { argument
107 size = ((size + alignment - 1) / alignment) * alignment;
122 if ((ptr & (alignment-1)) == 0) return result;
124 // Try to get more memory for alignment
125 size_t extra = alignment - (ptr & (alignment-1));
132 // Give up and ask for "size + alignment
150 TryMmap(size_t size, size_t *actual_size, size_t alignment) argument
201 TryVirtualAlloc(size_t size, size_t *actual_size, size_t alignment) argument
254 TryDevMem(size_t size, size_t *actual_size, size_t alignment) argument
331 TCMalloc_SystemAlloc(size_t size, size_t *actual_size, size_t alignment) argument
[all...]
H A DPageAllocationAligned.cpp31 PageAllocationAligned PageAllocationAligned::allocate(size_t size, size_t alignment, OSAllocator::Usage usage, bool writable) argument
34 ASSERT(isPageAligned(alignment));
35 ASSERT(isPowerOfTwo(alignment));
36 ASSERT(size >= alignment);
37 size_t alignmentMask = alignment - 1;
51 size_t alignmentDelta = alignment - pageSize();
59 ? reinterpret_cast<void*>((reinterpret_cast<uintptr_t>(reservationBase) & ~alignmentMask) + alignment)
H A DTCSystemAlloc.h39 // REQUIRES: "alignment" is a power of two or "0" to indicate default alignment
48 // The returned pointer is a multiple of "alignment" if non-zero.
52 size_t alignment = 0);
/macosx-10.10/WebCore-7600.1.25/platform/
H A DPODArena.h50 // Returns the alignment requirement for classes and structs on the
57 // Rounds up the given allocation size to the specified alignment.
58 size_t roundUp(size_t size, size_t alignment) argument
60 ASSERT(!(alignment % 2));
61 return (size + alignment - 1) & ~(alignment - 1);
/macosx-10.10/libffi-18.1/
H A Dffi.c43 arg->size != 0 || arg->alignment != 0)
57 int curalign = (*ptr)->alignment;
67 arg->alignment = (arg->alignment > curalign) ?
68 arg->alignment : curalign;
70 arg->size = ALIGN(arg->size, (*ptr)->alignment);
72 arg->alignment = (arg->alignment > (*ptr)->alignment) ?
73 arg->alignment
[all...]
/macosx-10.10/pyobjc-45/2.5/pyobjc/pyobjc-core/libffi-src/
H A Dffi.c43 arg->size != 0 || arg->alignment != 0)
57 int curalign = (*ptr)->alignment;
67 arg->alignment = (arg->alignment > curalign) ?
68 arg->alignment : curalign;
70 arg->size = ALIGN(arg->size, (*ptr)->alignment);
72 arg->alignment = (arg->alignment > (*ptr)->alignment) ?
73 arg->alignment
[all...]
/macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-core/libffi-src/
H A Dffi.c43 arg->size != 0 || arg->alignment != 0)
57 int curalign = (*ptr)->alignment;
67 arg->alignment = (arg->alignment > curalign) ?
68 arg->alignment : curalign;
70 arg->size = ALIGN(arg->size, (*ptr)->alignment);
72 arg->alignment = (arg->alignment > (*ptr)->alignment) ?
73 arg->alignment
[all...]
/macosx-10.10/pyobjc-45/pyobjc/pyobjc-core-2.5.1/libffi-src/
H A Dffi.c43 arg->size != 0 || arg->alignment != 0)
57 int curalign = (*ptr)->alignment;
67 arg->alignment = (arg->alignment > curalign) ?
68 arg->alignment : curalign;
70 arg->size = ALIGN(arg->size, (*ptr)->alignment);
72 arg->alignment = (arg->alignment > (*ptr)->alignment) ?
73 arg->alignment
[all...]
/macosx-10.10/tcl-105/tk/tk/generic/
H A DtkImgUtil.c39 int alignment, /* Number of bytes to which the data should be
57 if (dataWidth % alignment) {
58 dataWidth += (alignment - (dataWidth % alignment));
36 TkAlignImageData( XImage *image, int alignment, int bitOrder) argument
/macosx-10.10/bmalloc-7600.1.17/bmalloc/
H A DVMAllocate.h86 // Allocates vmSize bytes at a specified offset from a power-of-two alignment.
89 inline std::pair<void*, Range> vmAllocate(size_t vmSize, size_t alignment, size_t offset) argument
92 BASSERT(isPowerOfTwo(alignment));
94 size_t mappedSize = std::max(vmSize, alignment) + alignment;
97 uintptr_t alignmentMask = alignment - 1;
98 if (!test(mapped, alignmentMask) && offset + vmSize <= alignment) {
101 vmDeallocate(mapped + alignment, alignment);
102 return std::make_pair(mapped + offset, Range(mapped, alignment));
[all...]
H A DSizes.h45 static const size_t alignment = 8; member in namespace:bmalloc::Sizes
46 static const size_t alignmentMask = alignment - 1ul;
95 static const size_t smallSizeClassMask = (smallMax / alignment) - 1;
96 return mask((size - 1ul) / alignment, smallSizeClassMask);
/macosx-10.10/WebCore-7600.1.25/platform/audio/
H A DAudioArray.h60 const size_t alignment = 32; local
62 const size_t alignment = 16; local
78 T* alignedData = alignedAddress(allocation, alignment);
80 if (alignedData == allocation || extraAllocationBytes == alignment) {
87 extraAllocationBytes = alignment; // always allocate extra after the first alignment failure.
138 static T* alignedAddress(T* address, intptr_t alignment) argument
141 return reinterpret_cast<T*>((value + alignment - 1) & ~(alignment - 1));
/macosx-10.10/WebKit2-7600.1.25/Platform/IPC/
H A DArgumentDecoder.cpp59 static inline uint8_t* roundUpToAlignment(uint8_t* ptr, unsigned alignment) argument
61 // Assert that the alignment is a power of 2.
62 ASSERT(alignment && !(alignment & (alignment - 1)));
64 uintptr_t alignmentMask = alignment - 1;
84 bool ArgumentDecoder::alignBufferPosition(unsigned alignment, size_t size) argument
86 uint8_t* alignedPosition = roundUpToAlignment(m_bufferPos, alignment);
97 bool ArgumentDecoder::bufferIsLargeEnoughToContain(unsigned alignment, size_t size) const argument
99 return alignedBufferIsLargeEnoughToContain(roundUpToAlignment(m_bufferPos, alignment), m_bufferEn
102 decodeFixedLengthData(uint8_t* data, size_t size, unsigned alignment) argument
[all...]
H A DArgumentEncoder.cpp79 static inline size_t roundUpToAlignment(size_t value, unsigned alignment) argument
81 return ((value + alignment - 1) / alignment) * alignment;
106 uint8_t* ArgumentEncoder::grow(unsigned alignment, size_t size) argument
108 size_t alignedSize = roundUpToAlignment(m_bufferSize, alignment);
117 void ArgumentEncoder::encodeFixedLengthData(const uint8_t* data, size_t size, unsigned alignment) argument
119 ASSERT(!(reinterpret_cast<uintptr_t>(data) % alignment));
121 uint8_t* buffer = grow(alignment, size);
/macosx-10.10/xnu-2782.1.97/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp101 vm_offset_t alignment,
105 return (initWithPhysicalMask(inTask, options, capacity, alignment, physicalMask));
113 mach_vm_address_t alignment,
150 if (physicalMask && (alignment <= 1))
152 alignment = ((physicalMask ^ (-1ULL)) & (physicalMask - 1));
153 highestMask = (physicalMask | alignment);
154 alignment++;
155 if (alignment < page_size)
156 alignment = page_size;
159 if ((options & (kIOMemorySharingTypeMask | kIOMapCacheMask | kIOMemoryClearEncrypt)) && (alignment < page_siz
98 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment, task_t inTask) argument
109 initWithPhysicalMask( task_t inTask, IOOptionBits options, mach_vm_size_t capacity, mach_vm_address_t alignment, mach_vm_address_t physicalMask) argument
323 inTaskWithOptions( task_t inTask, IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
355 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
364 withOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
476 vm_offset_t alignment = _alignment; local
[all...]
/macosx-10.10/xnu-2782.1.97/iokit/IOKit/
H A DIOMemoryCursor.h112 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
119 IOPhysicalLength alignment = 1);
126 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
133 IOPhysicalLength alignment = 1);
188 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
194 IOPhysicalLength alignment = 1);
200 @param alignment Alignmen
[all...]
H A DIOBufferMemoryDescriptor.h88 vm_offset_t alignment,
97 mach_vm_address_t alignment,
137 vm_offset_t alignment) APPLE_KEXT_DEPRECATED; /* use withOptions() instead */
142 vm_offset_t alignment = 1);
146 @discussion Added in Mac OS X 10.2, this method allocates a memory buffer with a given size and alignment in the task's address space specified, and returns a memory descriptor instance representing the memory. It is recommended that memory allocated for I/O or sharing via mapping be created via IOBufferMemoryDescriptor. Options passed with the request specify the kind of memory to be allocated - pageablity and sharing are specified with option bits. This function may block and so should not be called from interrupt level or while a simple lock is held.
159 @param alignment The minimum required alignment of the buffer in bytes - 1 is the default for no required alignment. For example, pass 256 to get memory allocated at an address with bits 0-7 zero.
166 vm_offset_t alignment = 1);
170 @discussion Added in Mac OS X 10.5, this method allocates a memory buffer with a given size and alignment i
[all...]
/macosx-10.10/objc4-646/runtime/
H A Dobjc-layout.mm613 * Determines the size and alignment of a basic ivar type. If the basic
620 static char *scan_basic_ivar_type(char *type, long *size, long *alignment, BOOL *is_reference) {
639 // size and alignment of an id type
641 *alignment = __alignof(id);
654 // size and alignment of a generic pointer type
656 *alignment = __alignof(void *);
665 // size and alignment of a char pointer type
667 *alignment = __alignof(char *);
677 *alignment = __alignof(void *);
684 *alignment
[all...]
/macosx-10.10/gnutar-453/gnutar/lib/
H A Dobstack.c57 /* Determine default alignment. */
146 int size, int alignment,
152 if (alignment == 0)
153 alignment = DEFAULT_ALIGNMENT;
174 h->alignment_mask = alignment - 1;
181 alignment - 1);
192 _obstack_begin_1 (struct obstack *h, int size, int alignment,
199 if (alignment == 0)
200 alignment = DEFAULT_ALIGNMENT;
221 h->alignment_mask = alignment
144 _obstack_begin(struct obstack *h, int size, int alignment, void *(*chunkfun) (long), void (*freefun) (void *)) argument
191 _obstack_begin_1(struct obstack *h, int size, int alignment, void *(*chunkfun) (void *, long), void (*freefun) (void *, void *), void *arg) argument
[all...]
/macosx-10.10/IOPCIFamily-239.1.2/tools/
H A Dpcirange.cpp20 IOPCIScalar alignment; member in struct:IOPCIRange
29 IOPCIScalar align(IOPCIScalar num, IOPCIScalar alignment) argument
31 return (num + (alignment - 1) & ~(alignment - 1));
46 IOPCIScalar start, IOPCIScalar size, IOPCIScalar alignment = 0)
53 range->alignment = alignment ? alignment : size;
61 IOPCIScalar alignment)
115 pciRangeInit(nextRange, start, size, alignment);
58 pciRangeListAddRange(IOPCIRange ** rangeList, IOPCIScalar start, IOPCIScalar size, IOPCIScalar alignment) argument
[all...]

Completed in 199 milliseconds

1234567891011>>