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

aes_gcm: Prefer integrated implementations, avoid inlining fallbacks. #2119

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

briansmith
Copy link
Owner

The #[inline(always)] on open_strided was just a mistake.

But, even correcting that, the compiler won't structure open() and seal() in the expected way. With these changes, the integrated implementations will get inlined (as far as possible) and the compiler will be biased towards assuming they will be used.

@briansmith briansmith self-assigned this Jun 23, 2024
Copy link

codecov bot commented Jun 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.12%. Comparing base (525047a) to head (1cad1ee).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2119   +/-   ##
=======================================
  Coverage   97.12%   97.12%           
=======================================
  Files         151      151           
  Lines       20101    20101           
  Branches      447      447           
=======================================
  Hits        19524    19524           
  Misses        482      482           
  Partials       95       95           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The `#[inline(always)]` on `open_strided` was just a mistake.

But, even correcting that, the compiler won't structure `open()` and
`seal()` in the expected way. With these changes, the integrated
implementations will get inlined (as far as possible) and the
compiler will be biased towards assuming they will be used.
@briansmith briansmith changed the title aes_gcm: Prefer integrated implementatoins, avoid inlining fallbacks. aes_gcm: Prefer integrated implementations, avoid inlining fallbacks. Jun 23, 2024
@briansmith briansmith merged commit fd06b00 into main Jun 23, 2024
158 checks passed
@briansmith briansmith deleted the b/open-always branch June 23, 2024 23:58
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