_mm256_packus_epi16/32

Pack signed word/doubleword integers to unsigned byte/word integers and saturates. The corresponding Intel® AVX 2 instructions are VPACKUSWB and VPACKUSDW

Syntax

extern __m256i _mm256_packus_epi16(__m256i a, __m256i b);

extern __m256i _mm256_packus_epi32(__m256i a, __m256i b);

Arguments

a

integer source operand used for the operation

b

integer source operand used for the operation

Description

The _mm256_packus_epi16 intrinsic converts 16 packed unsigned word integers from the first and the second source operands into 32 packed usigned byte integers. The _mm256_packus_epi32 intrinsic converts 8 packed unsigned doubleword integers from the first and the second source operands into 16 unpacked signed word integers.

Returns

Result of the pack operation.


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.