SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared2p , type T>
D T max (D T x)
 
template<domain D :shared2p >
D uint8 max (D uint8 x)
 
template<domain D :shared2p >
D uint16 max (D uint16 x)
 
template<domain D :shared2p >
D uint32 max (D uint32 x)
 
template<domain D :shared2p >
D uint max (D uint x)
 
template<domain D :shared2p >
D int8 max (D int8 x)
 
template<domain D :shared2p >
D int16 max (D int16 x)
 
template<domain D :shared2p >
D int32 max (D int32 x)
 
template<domain D :shared2p >
D int max (D int x)
 
template<domain D :shared2p >
D xor_uint8 max (D xor_uint8 x)
 
template<domain D :shared2p >
D xor_uint16 max (D xor_uint16 x)
 
template<domain D :shared2p >
D xor_uint32 max (D xor_uint32 x)
 
template<domain D :shared2p >
D xor_uint64 max (D xor_uint64 x)
 

Detailed Description

Function for finding the maximum element of the input vector.

Note
D - shared2p protection domain
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / xor_uint8 / xor_uint16 / xor_uint32 / xor_uint64
Parameters
x- input
Returns
maximum element of the input vector.
Precondition
input vector is not empty

Function Documentation

◆ max() [1/13]

template<domain D :shared2p >
D int max ( D int  x)

◆ max() [2/13]

template<domain D :shared2p >
D int16 max ( D int16  x)

◆ max() [3/13]

template<domain D :shared2p >
D int32 max ( D int32  x)

◆ max() [4/13]

template<domain D :shared2p >
D int8 max ( D int8  x)

◆ max() [5/13]

template<domain D :shared2p , type T>
D T max ( D T  x)

◆ max() [6/13]

template<domain D :shared2p >
D uint max ( D uint  x)

◆ max() [7/13]

template<domain D :shared2p >
D uint16 max ( D uint16  x)

◆ max() [8/13]

template<domain D :shared2p >
D uint32 max ( D uint32  x)

◆ max() [9/13]

template<domain D :shared2p >
D uint8 max ( D uint8  x)

◆ max() [10/13]

template<domain D :shared2p >
D xor_uint16 max ( D xor_uint16  x)

◆ max() [11/13]

template<domain D :shared2p >
D xor_uint32 max ( D xor_uint32  x)

◆ max() [12/13]

template<domain D :shared2p >
D xor_uint64 max ( D xor_uint64  x)

◆ max() [13/13]

template<domain D :shared2p >
D xor_uint8 max ( D xor_uint8  x)