Skip to content

Tracking Issue for mul_add being absent from std::simd::Simd #91422

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

Closed
3 tasks
hanabi1224 opened this issue Dec 1, 2021 · 1 comment
Closed
3 tasks

Tracking Issue for mul_add being absent from std::simd::Simd #91422

hanabi1224 opened this issue Dec 1, 2021 · 1 comment
Labels
A-SIMD Area: SIMD (Single Instruction Multiple Data) C-feature-request Category: A feature request, i.e: not implemented / a PR. PG-portable-simd Project group: Portable SIMD (https://github.com/rust-lang/project-portable-simd) T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@hanabi1224
Copy link

hanabi1224 commented Dec 1, 2021

Feature gate: #![feature(portable_simd )]

mul_add presents under core_simd::Simd in rust-lang/portable-simd but is missing from std::simd::Simd

Below code (playground) does not compile

error[E0599]: no method named mul_add found for struct Simd in the current scope
--> src/main.rs:8:15
|
8 | let _ = a.mul_add(b, c);
| ^^^^^^^ method not found in Simd<f64, 8_usize>

For more information about this error, try rustc --explain E0599.
error: could not compile playground due to previous error

Public API

#![feature(portable_simd)]

use std::simd::f64x8;
// This works
// use core_simd::f64x8;

fn main() {
    let a = f64x8::splat(0f64);
    let b = f64x8::splat(0f64);
    let c = f64x8::splat(0f64);
    let _ = a.mul_add(b, c);
}

Steps / History

  • Implementation: #...
  • Final comment period (FCP)
  • Stabilization PR

Unresolved Questions

  • None yet.
@hanabi1224 hanabi1224 added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Dec 1, 2021
@workingjubilee workingjubilee added C-feature-request Category: A feature request, i.e: not implemented / a PR. and removed C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC labels Dec 2, 2021
@inquisitivecrystal inquisitivecrystal added A-SIMD Area: SIMD (Single Instruction Multiple Data) PG-portable-simd Project group: Portable SIMD (https://github.com/rust-lang/project-portable-simd) labels Dec 2, 2021
@workingjubilee
Copy link
Member

Please use std::simd::StdFloat; for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-SIMD Area: SIMD (Single Instruction Multiple Data) C-feature-request Category: A feature request, i.e: not implemented / a PR. PG-portable-simd Project group: Portable SIMD (https://github.com/rust-lang/project-portable-simd) T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants