Struct core::arch::x86_64::__m256i1.27.0[][src]

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

256 位宽的整数 vector 类型,特定于 x86

此类型与 Intel 定义的 __m256i 类型相同,代表 256 位 SIMD 寄存器。 这种类型的用法通常对应于 x86/x86_64 的 avx 和 up 目标特性。

在内部,此类型可以被视为:

  • i8x32 - 三十二个 i8 变量包装在一起
  • i16x16 - 十六个 i16 变量包装在一起
  • i32x8 - 八个 i32 变量包装在一起
  • i64x4 - 四个 i64 变量包装在一起

(以及未签名的版本)。 每个内部函数可能会以不同的方式解释内部位,请查看内部函数的文档以了解它是如何使用的。

请注意,这意味着 __m256i 的实例通常仅表示 “bag of bits”,该 “bag of bits” 留待使用时进行解释。

Examples

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

let all_bytes_zero = _mm256_setzero_si256();
let all_bytes_one = _mm256_set1_epi8(1);
let eight_i32 = _mm256_set_epi32(1, 2, 3, 4, 5, 6, 7, 8);
Run

Trait Implementations

返回值的副本。 Read more

source 执行复制分配。 Read more

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

Auto Trait Implementations

Blanket Implementations

获取 selfTypeIdRead more

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

从拥有的值中借用。 Read more

执行转换。

执行转换。

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

执行转换。

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

执行转换。