Struct core::arch::x86::__m256d1.27.0[][src]

#[repr(simd)]
pub struct __m256d(_, _, _, _);
This is supported on x86 only.
Expand description

256 位宽的四种 f64 类型的集合,特定于 x86

此类型与 Intel 定义的 __m256d 类型相同,代表一个 256 位 SIMD 寄存器,该寄存器内部由四个包装的 f64 实例组成。

这种类型的用法通常对应于 avx 和 x86/x86_64 的向上目标功能。

请注意,与 __m256i (256 位寄存器的整数版本) 不同,此 __m256d 类型具有 one 解释。 __m256d 的每个实例始终与 f64x4 或包装在一起的四种 f64 类型相对应。

使用 __m256d 的大多数内联函数都以 _mm256_ 为前缀,并以 “pd” 为后缀 (或另外包含 “pd”)。 不要与用于 __m256 的 “ps” 混淆。

Examples

#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]
use std::arch::x86_64::*;

let four_zeros = _mm256_setzero_pd();
let four_ones = _mm256_set1_pd(1.0);
let four_floats = _mm256_set_pd(1.0, 2.0, 3.0, 4.0);
Run

Trait Implementations

This is supported on x86 or x86-64 only.

返回值的副本。 Read more

source 执行复制分配。 Read more

This is supported on x86 or x86-64 only.

使用给定的格式化程序格式化该值。 Read more

This is supported on x86 or x86-64 only.

Auto Trait Implementations

Blanket Implementations

获取 selfTypeIdRead more

从拥有的值中一成不变地借用。 Read more

从拥有的值中借用。 Read more

执行转换。

执行转换。

发生转换错误时返回的类型。

执行转换。

发生转换错误时返回的类型。

执行转换。