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

Don't use u8x16_bitmask for ASCII Check #79

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

CryZe
Copy link
Contributor

@CryZe CryZe commented Mar 28, 2023

Because NEON doesn't have an equivalent instruction, the WASM runtimes have to emit fairly suboptimal instructions for bitmasks. Therefore it's best to avoid it, if the code can be written in an alternative way.

Copy link
Contributor

@hkratz hkratz left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good AFAICS except for the unused import.

src/implementation/wasm32/simd128.rs Outdated Show resolved Hide resolved
Because `NEON` doesn't have an equivalent instruction, the WASM runtimes
have to emit fairly suboptimal instructions for bitmasks. Therefore it's
best to avoid it, if the code can be written in an alternative way.
@CryZe CryZe force-pushed the no-bitmask-on-wasm branch from a174d65 to e38f9f0 Compare March 29, 2023 06:34
@hkratz hkratz merged commit 3112c3f into rusticstuff:main Mar 29, 2023
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