File: helpers.rs

package info (click to toggle)
rust-multiversion 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 168 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[multiversion::multiversion(targets = "simd")]
fn foo() {
    const WIDTH: Option<usize> =
        multiversion::target::selected_target!().suggested_simd_width::<f32>();
    println!("{WIDTH:?}");

    #[allow(unused)]
    #[multiversion::inherit_target]
    unsafe fn inherited() {}
}

#[test]
fn helpers() {
    foo()
}