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

Remove uses of #include <string.h> #842

Merged
merged 2 commits into from
Jun 14, 2019
Merged

Remove uses of #include <string.h> #842

merged 2 commits into from
Jun 14, 2019

Conversation

briansmith
Copy link
Owner

No description provided.

alignas(32) Elem x; memset(x, 0, sizeof(x));
alignas(32) Elem y; memset(y, 0, sizeof(y));
alignas(32) Elem z; memset(z, 0, sizeof(z));
alignas(32) Elem x; limbs_zero(x, P256_LIMBS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below, this can be written as

alignas(32) Elem x = {0};

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I made a TODO about this: issue #844.

@briansmith briansmith merged commit 6960614 into master Jun 14, 2019
@briansmith briansmith deleted the b/no-string-h branch June 15, 2019 17:43
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.

2 participants