Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

<span class='option'>_mm256_blendv_pd</span>

Performs conditional blend/merge of float64 vectors. The corresponding Intel® AVX instruction is VBLENDVPD.

Syntax

extern __m256d _mm256_blendv_pd(__m256d m1, __m256d m2, __m256d mask);

Arguments

m1

float64 vector used for the operation

m2

float64 vector also used for the operation

mask

float64 vector with mask for the operation

Description

Performs a conditional merge of four packed double-precision floating point elements (float64 elements) of two vectors according to the most significant bits of the mask parameter elements.

The mask parameter defines a mask for the operation. The most significant bit of the corresponding double-precision floating-point elements in the mask determines whether the corresponding double-precision floating-point element in the resulting vector is copied from the second source or first source.

If the bit in the mask is “1” then the corresponding element of the second source vector is copied into the resulting vector. If the bit is “0” then the corresponding element of the first source vector is copied into the resulting vector. Thus a merging/blending of the elements of the two source vectors occurs when this intrinsic is used.

Returns

Result of the blend operation.