본문 바로가기
SIMD/Intel Instrinsic

__m128i _mm_blend_epi32 () : Mix data

by 김뿡한 2015. 1. 21.

Intrinsics Guide



__m128i _mm_blend_epi32 (__m128i a, __m128i b, const int imm8)

Synopsis

__m128i _mm_blend_epi32 (__m128i a, __m128i b, const int imm8)
#include "immintrin.h"
Instruction: vpblendd xmm, xmm, xmm, imm
CPUID Flags: AVX2

Description

Blend packed 32-bit integers from a and b using control mask imm8, and store the results in dst.

Operation

FOR j := 0 to 3 i := j*32 IF imm8[j%8] dst[i+31:i] := b[i+31:i] ELSE dst[i+31:i] := a[i+31:i] FI ENDFOR dst[MAX:128] := 0

Performance

ArchitectureLatencyThroughput
Haswell10.33


'SIMD > Intel Instrinsic' 카테고리의 다른 글

_mm_set_epi16 ,  (0) 2015.01.22
_mm_srai_epi16() , _mm_srai_epi32() : Shift  (0) 2015.01.22
void _mm_prefetch ( )  (0) 2015.01.14
_mm_store_......()  (0) 2015.01.13
_mm_lddqu_si128(), _mm_loadl_epi64()  (0) 2015.01.13