Skip to content

Nicer examples for SimdIntWiden - #425

Merged
Shnatsel merged 3 commits into
linebender:mainfrom
RunDevelopment:SimdIntWiden-examples
Oct 25, 2026
Merged

Shnatsel merged 3 commits into
linebender:mainfrom
RunDevelopment:SimdIntWiden-examples

Conversation

@RunDevelopment

Copy link
Copy Markdown
Contributor

Changes:

  • Added examples for widening_add and widening_mul.
  • Use ASCII diagrams to visually convey what pairwise_widening_add and pairwise_dot_product are doing.
  • Simplify example code a bit and make all of them doc tests. use fearless_simd::{...} and dispatch!(...) are just boilerplate, so I hid them.

@Shnatsel Shnatsel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@Shnatsel

Copy link
Copy Markdown
Contributor

I like the direction but please sort out the CI failures

@RunDevelopment

Copy link
Copy Markdown
Contributor Author

Wait, why do widening operations not take impl IntoSimd<Self, S> arguments like everything in Simd{Base,Int,Float}?

@RunDevelopment RunDevelopment mentioned this pull request Oct 25, 2026
@Shnatsel

Copy link
Copy Markdown
Contributor

Please update this with #426 and then I'll be happy to merge

@Shnatsel

Copy link
Copy Markdown
Contributor

I believe 3cf4a25 can be reverted now?

@RunDevelopment

Copy link
Copy Markdown
Contributor Author

I already did that in the merge commit while resolving conflicts.

@Shnatsel
Shnatsel added this pull request to the merge queue Oct 25, 2026
Merged via the queue into linebender:main with commit bcf5892 Oct 25, 2026
23 checks passed
@RunDevelopment
RunDevelopment deleted the SimdIntWiden-examples branch October 25, 2026 17:12
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.

2 participants