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

Functions

template<domain D :shared2p , dim N>
D bool bit_extract (D xor_uint8 input)
 
template<domain D :shared2p , dim N>
D bool bit_extract (D xor_uint16 input)
 
template<domain D :shared2p , dim N>
D bool bit_extract (D xor_uint32 input)
 
template<domain D :shared2p , dim N>
D bool bit_extract (D xor_uint64 input)
 

Detailed Description

Function for converting xor_uint(X) type value to the bit representation.

Note
D - shared2p protection domain
Supported types - xor_uint8 / xor_uint16 / xor_uint32 / xor_uint64
The input is arbitrary dimensional array, output is flattened to one boolean vector. Reshape the result to get appropriate dimensionality.
Parameters
input- the input value to convert
Returns
returns filattened vector of extracted bits

Function Documentation

◆ bit_extract() [1/4]

template<domain D :shared2p , dim N>
D bool bit_extract ( D xor_uint16  input)

◆ bit_extract() [2/4]

template<domain D :shared2p , dim N>
D bool bit_extract ( D xor_uint32  input)

◆ bit_extract() [3/4]

template<domain D :shared2p , dim N>
D bool bit_extract ( D xor_uint64  input)

◆ bit_extract() [4/4]

template<domain D :shared2p , dim N>
D bool bit_extract ( D xor_uint8  input)