Visible to Intel only — GUID: GUID-60FFD6ED-DD75-4095-85B8-B53EC7D10F31
Visible to Intel only — GUID: GUID-60FFD6ED-DD75-4095-85B8-B53EC7D10F31
<span class='option'>_mm256_maddubs_epi16 </span>
Multiplies unsigned packed 16-bit integer data elements of one vector with signed elements of second vector. The corresponding Intel® AVX2 instruction is VPMADDUBSW.
extern __m256i _mm256_maddubs_epi16(__m256i s1, __m256i s2); |
s1 |
integer source vector used for the operation |
s2 |
integer source vector used for the operation |
Multiplies vertically each unsigned byte of source vector s1 with the corresponding signed byte of source vector s2, producing intermediate, signed 16-bit integers. Each adjacent pair of signed words is added, and the saturated result is packed to the destination vector.
For example, the lowest-order bytes (bits 7:0) in s1 and s2 vectors are multiplied and the intermediate signed word result is added with the corresponding intermediate result from the 2nd lowest-order bytes (bits 15:8) of the vectors. The sign-saturated result is stored in the lowest word of the destination vector (15:0). The same operation is performed on the other pairs of adjacent bytes.
Result of the multiplication operation.