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

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

256 位宽的八种 f32 类型的集合,特定于 x86

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

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

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

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

Examples

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

let eight_zeros = _mm256_setzero_ps();
let eight_ones = _mm256_set1_ps(1.0);
let eight_floats = _mm256_set_ps(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.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

执行转换。

执行转换。

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

执行转换。

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

执行转换。