Intel® C++ Compiler 16.0 User and Reference Guide

_mm512_reduce_max_epi32/_mm512_mask_reduce_max_epi32

Determines the element with maximum scalar value in an integer vector. There is no corresponding instruction. This intrinsic only applies to Intel® Many Integrated Core Architecture (Intel® MIC Architecture).

Syntax

Without Mask

extern int __cdecl _mm512_reduce_max_epi32(_m512i v2);

With Mask

extern int __cdecl _mm512_mask_reduce_max_epi32(__mmask16 k1, _m512i v2);

Parameters

v2

32-bit integer vector in which to determine the maximum value

k1

Writemask; only those elements of the source vectors with corresponding bit set to '1' in the k1 mask are computed and stored in the result

Description

Determines the element with maximum value in the 32-bit integer vector v2.

The masked variant has one additional argument: k1. Only those elements in the source registers with the corresponding bit set in vector mask k1 are used for computing. Elements in v2 with corresponding bit clear in k1 are copied as is to the resulting vector.

Returns

Returns the result of the operation.