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

Avoid memcpy in AdditiveCipherTemplate<S>::ProcessData (GH #683, GH #1010) #1019

Merged
merged 5 commits into from
Mar 17, 2021

Conversation

noloader
Copy link
Collaborator

We found we can avoid the memcpy in the previous workaround by using a volatile pointer. The pointer appears to tame the optimizer so the compiler does not short-circuit some calls when outString == inString.

@noloader noloader merged commit ca123d1 into weidai11:master Mar 17, 2021
EAddario pushed a commit to EAddario/cryptopp that referenced this pull request Apr 10, 2021
…, GH weidai11#1010, PR weidai11#1019)

We found we can avoid the memcpy in the previous workaround by using a volatile pointer. The pointer appears to tame the optimizer so the compiler does not short-circuit some calls when outString == inString.
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.

None yet

1 participant