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

Leverage target_feature 1.1 #1255

Open
lu-zero opened this issue Apr 30, 2019 · 2 comments
Open

Leverage target_feature 1.1 #1255

lu-zero opened this issue Apr 30, 2019 · 2 comments

Comments

@lu-zero
Copy link
Collaborator

lu-zero commented Apr 30, 2019

target_feature 1.1 should ease implementing some SIMD code.

  • safe #[target_feature] functions can be called without an unsafe {} block only from functions that have at least the exact same set of #[target_feature]s. Calling them from other contexts (other functions, static variable initializers, etc.) requires opening an unsafe {} even though they are not marked as unsafe
  • safe #[target_feature] functions are not assignable to safe fn pointers.

This issue is a tracker to know when we'll be able to use it.

@vibhoothi
Copy link
Collaborator

I think we are now using this for NEON, AVX2 post-dav1d merge, can be closed I think

@lu-zero
Copy link
Collaborator Author

lu-zero commented May 23, 2021

Not yet rust-lang/rust#69098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants