-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase alginment for packed structures
While both TaskStateSegment and DescriptorTablePointer can't have their normal C alignment due to their definition. However, this doesn't mean their alignment has to be `1`. This PR sets their alignment to be the max possible while still preserving their ABI definied structure. I added some tests to make sure there is not a regression. This can also result in more efficient code generation on platofrms without unalgined loads. https://rust.godbolt.org/z/EPbbMxeq1 Signed-off-by: Joe Richey <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters