# _mm256_blendv_pd

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.

Parent topic: Intrinsics for Blend and Conditional Merge Operations