These Intel® Streaming SIMD Extensions 4 (Intel® SSE4) intrinsics compare packed integers in the destination operand and the source operand, and return the minimum or maximum for each packed operand in the destination operand. The prototypes for these instrinsics are in the smmintrin.h file.
Intrinsic Syntax |
Operation |
Corresponding |
---|---|---|
__m128i _mm_max_epi8( __m128i a, __m128i b) |
Calculates maximum of signed packed integer bytes |
PMAXSB |
__m128i _mm_max_epi32( __m128i a, __m128i b) |
Calculates maximum of signed packed integer double words |
PMAXSD |
__m128i _mm_max_epu32( __m128i a, __m128i b) |
Calculates maximum of unsigned packed integer double words |
PMAXUD |
__m128i _mm_max_epu16( __m128i a, __m128i b) |
Calculates maximum of unsigned packed integer words |
PMAXUW |
__m128i _mm_min_epi8( __m128i a, __m128i b) |
Calculates minimum of signed packed integer bytes |
PMINSB |
__m128i _mm_min_epi32( __m128i a, __m128i b) |
Calculates minimum of signed packed integer double words |
PMINSD |
__m128i _mm_min_epu32( __m128i a, __m128i b) |
Calculates minimum of unsigned packed integer double words |
PMINUD |
__m128i _mm_min_epu16( __m128i a, __m128i b) |
Calculates minimum of unsigned packed integer words |
PMINUW |
Copyright © 1996-2011, Intel Corporation. All rights reserved.