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 overflow panic from divrem and add basic docs to Simd<T, N> #243

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

workingjubilee
Copy link
Member

@workingjubilee workingjubilee commented Feb 8, 2022

This finishes normalizing Simd<T, N> to being approximately equivalent to Simd<Wrapping<T>, N> for all implemented operations I can think of. It also documents this fact, allowing this to close #56.

@workingjubilee workingjubilee changed the title Remove overflow panic from divrem Remove overflow panic from divrem and add basic docs to Simd<T, N> Feb 8, 2022
Includes some remarks in intrinsics.rs,
generated while auditing the interface for remaining UB.
and other quirks like panicking
and the equivalence to zipping and mapping binary ops
Copy link
Member

@calebzulawski calebzulawski left a comment

Choose a reason for hiding this comment

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

Looks good to me, just added some suggestions where I thought it could be a little clearer.

Co-authored-by: Caleb Zulawski <caleb.zulawski@gmail.com>
Copy link
Member

@programmerjake programmerjake left a comment

Choose a reason for hiding this comment

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

lgtm

@workingjubilee workingjubilee merged commit 6143bde into master Feb 9, 2022
@workingjubilee workingjubilee deleted the no-overflow-panic branch February 9, 2022 21:04
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.

Should SIMD add/sub/etc. trigger panics on overflow in debug mode?
3 participants