Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

_mm256_testc_pd, _mm_testc_pd

$
0
0

Performs a packed bit test of two 256-bit or 128-bit float64 vectors to set the CF flag. The corresponding Intel® AVX instruction is VTESTPD.

Syntax

extern __m256d _mm256_testc_pd(__m256d s1, __m256d s2);

extern __m128d _mm_testc_pd(__m128d s1, __m128d s2);

Arguments

s1

first source float64 vector

s2

second source float64 vector

Description

Allows setting of the CF flag. The CF flag is set based on the result of a bitwise AND and logical NOT operation between the first and second source vectors. The corresponding instruction, VTESTPD, sets the CF flag if all the resulting bits are 0. If the resulting bits are non-zeros, the instruction clears the CF flag.

The _mm_testc_pd intrinsic sets the CF flag according to results of the 128-bit float64 source vectors. The _m256_testc_pd intrinsic sets the CF flag according to the results of the 256-bit float64 source vectors.

Note

Intel® Advanced Vector Extensions (Intel® AVX) instructions include a full compliment of 128-bit SIMD instructions. Such Intel® AVX instructions, with vector length of 128-bits, zeroes the upper 128 bits of the YMM register. The lower 128 bits of the YMM register is aliased to the corresponding SIMD XMM register.

Returns

Non-zero if CF flag is set

Zero if the CF flag is not set

Inglés

Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>