Reorder some struct members to avoid padding due to alignment
This tweaks the ordering of some struct members in some of the more important structs so that the compiler won't insert wasted padding to avoid breaking the alignment. Some members that were previously unsigned long have been changed to unsigned int. These members need to be able to fit in 32-bits to run on 32-bit machines anyway so there's no point in having them extend to 64-bit on 64-bit machines. This doesn't affect the public API. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit b721af236680005464e39f7f4dd11381d95efb16)
This commit is contained in:

committed by
Robert Bragg

parent
7572fedeaa
commit
3a041ef41b
@ -130,8 +130,8 @@ typedef struct _CoglMatrixEntrySave
|
||||
{
|
||||
CoglMatrixEntry _parent_data;
|
||||
|
||||
CoglBool cache_valid;
|
||||
CoglMatrix *cache;
|
||||
CoglBool cache_valid;
|
||||
|
||||
} CoglMatrixEntrySave;
|
||||
|
||||
|
Reference in New Issue
Block a user