-
Notifications
You must be signed in to change notification settings - Fork 16
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
Introduce AVX2 target_feature
boundary in x4 sampling
#719
Conversation
This allows us to have a `target_feature` boundary here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, generally lgtm. I'll do another full pass later.
Can you update the C and F* extraction to make sure we don't do anything we shouldn't?
We check the length beforehand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Only a few nits, then let's get this in.
- Comment location - Remove `sample_four_ring_elements_into!` macro
The PR takes @franziskuskiefer's work on introducing another target feature boundary in x4 sampling for ring elements.
I've introduced a new enum that selects which sampler to use and allows switching on the target feature for AVX2.
Also, I tried to write
SampleArgs
a bit more generically, in case we want to do the same for error sampling.