Skip to content
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

Revise Dto{MemCpy,MemSet[Zero],Load,Store} helpers, mainly wrt. proper alignment #3699

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kinke
Copy link
Member

@kinke kinke commented Apr 11, 2021

Includes #3698 because it started out as a follow-up (and would lead to later conflicts otherwise).

kinke added 4 commits April 17, 2021 16:31
As we've mostly been assuming the worst case so far, an alignment of 1
for both source and destination. Try to use the D type alignments
explicitly wherever possible, and allow for different source/destination
alignments.

Also get rid of the optional `withPadding` arg for the version deriving
the size automatically, and switch from unpadded-size-by-default to
the padded size. Motivation: a memcpy of 10 bytes for an x87 real is
most likely more involved than copying 12/16 bytes etc.
And switch to the padded size when deriving the size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant