Skip to content

loongarch: Use intrinsics::simd for vmuh#2158

Merged
folkertdev merged 1 commit into
rust-lang:mainfrom
heiher:vmuh
Jul 1, 2026
Merged

loongarch: Use intrinsics::simd for vmuh#2158
folkertdev merged 1 commit into
rust-lang:mainfrom
heiher:vmuh

Conversation

@heiher

@heiher heiher commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@heiher

heiher commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot

This comment has been minimized.

@heiher

heiher commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

r? @folkertdev

@heiher heiher marked this pull request as ready for review June 30, 2026 16:31

@folkertdev folkertdev 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.

let p = is::simd_mul(a, b);
is::simd_cast(is::simd_shr(
p,
ls::simd_splat((size_of::<W::Elem>() * 4) as i64),

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.

so this *4 is really *8 / 2 right? does clippy not like that, because it would be much clearer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'll update it. Thanks

@folkertdev folkertdev added this pull request to the merge queue Jul 1, 2026
Merged via the queue into rust-lang:main with commit 80ade55 Jul 1, 2026
82 checks passed
@heiher heiher deleted the vmuh branch July 1, 2026 09:14
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.

3 participants