-
Notifications
You must be signed in to change notification settings - Fork 113
Add positive and negative trait impl tests for SIMD types #130
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
Comments
Hey, can I work on this issue? |
Hi, are you looking for a test similar to the one for primitives, to be written within the simd module following all the impls? |
Apologies, everyone — we'd like to take a slightly different approach. I've updated the issue accordingly. |
@shyamjayakannan: I'll assign this to @Sh0g0-1758 since they commented first, but you're welcome to take it if they don't end up working on it. |
thanks, @jswrenn, I will make sure to complete it. |
@jswrenn , I have made a PR. Kindly review it and suggest changes. |
Closed by #487. |
Uh oh!
There was an error while loading. Please reload this page.
We have tests to ensure that our implementations of
FromBytes
,AsBytes
, andUnaligned
for various primitive does not regress:zerocopy/src/lib.rs
Lines 4512 to 4517 in 3bb9a54
We should have similar tests for our implementations (or lack thereof) for SIMD types.
Mentorship Instructions
To do this, we will be adding tests at the end of
test_impls
:zerocopy/src/lib.rs
Lines 4488 to 4584 in b083f1f
At the bottom of that test function, create a new block annotated with
#[cfg(simd)]
; e.g.:Then, add a macro definition like this:
Finally, invoke the macro for each of the SIMD-supporting architectures (see here); e.g.:
The text was updated successfully, but these errors were encountered: