Skip to content

Document size_of for 128-bit integers #51441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Conversation

bstrie
Copy link
Contributor

@bstrie bstrie commented Jun 8, 2018

We might want to consider separately documenting the alignment of
primitives, rather than just their size, since 128-bit integers, unlike
all other primitives, have an alignment that is not identical to their
size (size_of is 16, align_of is 8)

We might want to consider separately documenting the alignment of
primitives, rather than just their size, since 128-bit integers, unlike
all other primitives, have an alignment that is not identical to their
size (size_of is 16, align_of is 8)
@hanna-kruppe
Copy link
Contributor

64 bit integers also sometimes have alignment 4. There's no real pattern there, it's just that usually native word sizes should be naturally aligned.

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 9, 2018
@kennytm
Copy link
Member

kennytm commented Jun 9, 2018

r? @dtolnay

@dtolnay
Copy link
Member

dtolnay commented Jun 9, 2018

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 9, 2018

📌 Commit 9a8fa2c has been approved by dtolnay

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 9, 2018
@bors
Copy link
Collaborator

bors commented Jun 9, 2018

⌛ Testing commit 9a8fa2c with merge 0b491a1...

bors added a commit that referenced this pull request Jun 9, 2018
Document size_of for 128-bit integers

We might want to consider separately documenting the alignment of
primitives, rather than just their size, since 128-bit integers, unlike
all other primitives, have an alignment that is not identical to their
size (size_of is 16, align_of is 8)
@bors
Copy link
Collaborator

bors commented Jun 9, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: dtolnay
Pushing 0b491a1 to master...

@bors bors merged commit 9a8fa2c into rust-lang:master Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants