Function core::arch::x86_64::_mm_mullo_epi32

1.27.0 · source ·
pub unsafe fn _mm_mullo_epi32(a: __m128i, b: __m128i) -> __m128i
Available on (x86 or x86-64) and target feature sse4.1 and x86-64 only.
Expand description

ab 中包装的 32 位整数相乘,产生中间值 64 位整数,并返回最低的 32 位 (无论它们是什么),都将重新解释为有符号整数。 虽然 pmulld __m128i::splat(2), __m128i::splat(2) 返回明显的 __m128i::splat(4),但由于包装算术,pmulld __m128i::splat(i32::MAX), __m128i::splat(2) 将返回负数。

Intel’s documentation