-
Notifications
You must be signed in to change notification settings - Fork 17
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
ML-DSA: AVX2 implementations of some arithmetic functions and t1 deserialization. #455
Conversation
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.
Looks good, just some questions. 👍
|
||
// We will test if |simd_unit| > bound - 1, because if this is the case then | ||
// it follows that |simd_unit| >= bound | ||
let bound = mm256_set1_epi32(bound - 1); |
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.
In theory this could underflow, right? Is that why you want to revisit?
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.
Ah, I'm not sure if it can underflow, but I put the TODO there since I haven't tried to properly calculate the representative ranges that this function will see.
Co-authored-by: Jonas Schneider-Bensch <[email protected]>
No description provided.