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

Have a way to write different code based on the runtime detected features #13

Open
parched opened this issue Jun 25, 2017 · 0 comments
Open

Comments

@parched
Copy link
Owner

parched commented Jun 25, 2017

It would be good if the user could write different code based on which version runtime features were available. For example, one might want to write inline assembly when some vector instructions are available.

IMO, this would best be done using #[cfg(target_feature)] inside the functions but that is currently blocked on rust-lang/rust#39336 and rust-lang/rust#42515.

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

1 participant