Home | History | Annotate | Download | only in libacc

Lines Matching defs:alignment

192         int alignment; // for structs only
547 * Memory alignment (in bytes) for this type of data
552 * Array element alignment (in bytes) for this type of data.
1010 // STACK_ALIGNMENT, so it won't affect the stack alignment.
1015 // Round local variable size up to a multiple of stack alignment
2064 * alignment (in bytes) for this type of data
2077 return pType->pHead->alignment & 0x7fffffff;
2079 error("alignment of func not supported");
2087 * Array element alignment (in bytes) for this type of data.
2839 // TODO: use alignment information to use movsw/movsl instead of movsb
3056 * Alignment (in bytes) for this type of data
3067 return pType->pHead->alignment & 0x7fffffff;
3069 error("alignment of func not supported");
3077 * Array element alignment (in bytes) for this type of data.
3366 * Alignment (in bytes) for this type of data
3373 * Array element alignment (in bytes) for this type of data.
3427 // Alloc using the standard alignment size safe for any variable
3446 // and a given power-of-two-sized alignment (e.g. 1,2,4,8,...)
3449 void* alloc(size_t size, size_t alignment) {
3450 while (size > mData[mCurrentChunk].remainingCapacity(alignment)) {
3455 if (allocSize < size + alignment - 1) {
3456 alignment - 1;
3463 return mData[mCurrentChunk].allocate(size, alignment);
3487 void* allocate(size_t size, size_t alignment) {
3488 size_t alignedOffset = aligned(mOffset, alignment);
3501 size_t remainingCapacity(size_t alignment) {
3502 return aligned(mSize, alignment) - aligned(mOffset, alignment);
3505 // Assume alignment is a power of two
3506 inline size_t aligned(size_t v, size_t alignment) {
3507 size_t mask = alignment-1;
5204 bool isStruct = (pType->pHead->alignment & 0x80000000) != 0;
5486 size_t alignment = pGen->alignmentOf(pItem);
5487 if (alignment > structAlignment) {
5488 structAlignment = alignment;
5490 size_t alignmentMask = alignment - 1;
5514 pStructType->pHead->alignment = structAlignment | (isStruct << 31);
5750 size_t alignment = pGen->alignmentOf(pDecl);
5751 assert(alignment > 0);
5752 size_t alignmentMask = ~ (alignment - 1);
5755 loc = (loc + alignment - 1) & alignmentMask;
5756 size_t alignedSize = (sizeOf + alignment - 1) & alignmentMask;
5922 size_t alignment = pGen->alignmentOf(pPassingType);
5923 a = (a + alignment - 1) & ~ (alignment-1);
5954 char* allocGlobalSpace(size_t alignment, size_t bytes) {
5955 size_t base = (((size_t) glo) + alignment - 1) & ~(alignment-1);