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

Opt-in std::simd support #12

Open
Shnatsel opened this issue Jul 28, 2024 · 1 comment
Open

Opt-in std::simd support #12

Shnatsel opened this issue Jul 28, 2024 · 1 comment

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented Jul 28, 2024

The std::simd module provides a safe, portable API for SIMD. Together with the multiversion crate it allows for SIMD that works from a single source file on every platform, and entirely in safe code!

The drawback is that it is nightly-only, and still technically unstable despite not having changed in quite some time. It would be great to add support for it and expose this as an opt-in feature, e.g. nightly-portable-simd. This would let your crate support SIMD on a lot more platforms (Aarch64, WASM, etc) and allow people on nightly channel to use a fast implementation without unsafe code.

@vstroebel
Copy link
Owner

Adding support for std::simd has been on my todo list for some time, too.
I've create a WIP branch and pull request (#13) which only contains an optimized RGB to YCbCr function yet.

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

No branches or pull requests

2 participants