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

Share optimized impls in const fn #485

Open
Pratyush opened this issue Sep 22, 2022 · 1 comment
Open

Share optimized impls in const fn #485

Pratyush opened this issue Sep 22, 2022 · 1 comment
Labels
T-performance Type: performance improvements T-refactor Type: cleanup/refactor

Comments

@Pratyush
Copy link
Member

Use const_eval_select to allow a single function that is both callable in const contexts, yet also contains optimized assembly/intrinsics implementations. See here for details: rust-lang/rust#77745

@Pratyush Pratyush added T-performance Type: performance improvements T-refactor Type: cleanup/refactor labels Sep 22, 2022
@burdges
Copy link
Contributor

burdges commented Mar 11, 2023

We need impl const Trait stabilized to do much here, I guess. An unstable form lives behind #![feature(const_trait_impl)] now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-performance Type: performance improvements T-refactor Type: cleanup/refactor
Projects
None yet
Development

No branches or pull requests

2 participants