rust-lang / rust-lang/rust

Tracking Issue for constifying x86 intrinsics in stdarch

Open
#149,298 0 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-tracking-issue S-tracking-unimplemented T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Feature gate: #![feature(stdarch_const_x86)]

This is a tracking issue for unstable const versions of x86(64) intrinsics in stdarch.

Public API

~50% of x86(64) intrinsics in stdarch are amenable to constification. Intel has some weird pecularities in floating point, especially in comparison and conversion, which will be nontrivial to constify. Most integer intrinsics have been constified.

Steps / History
  • Implementation: rust-lang/stdarch#1925
  • Final comment period (FCP)^1
  • Stabilization PR
Unresolved Questions
  • There are a few very specialized float intrinsics (mostly in AVX512), do we want to constify them?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the feature gate #![feature(stdarch_const_x86)] and the implementation tracked in rust-lang/stdarch#1925. Review which x86(64) intrinsics are already constified and the unresolved question about specialized AVX512 floating-point intrinsics. Done requires the implementation, final comment period, and stabilization PR to be completed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.