SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
sortingNetworkSort[[1]]

Functions

template<domain D, type T>
D T sortingNetworkSort (D T[[1]] array)
 

Detailed Description

Function for sorting values in a vector with sorting network.

Note
D - all protection domains
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / xor_uint8 / xor_uint16 / xor_uint32 / xor_uint64
Parameters
array- a vector of supported type
Returns
returns a sorted vector from smaller to bigger values
Leakage
None

Function Documentation

◆ sortingNetworkSort()

D T sortingNetworkSort ( D T[[1]]  array)