Agora  1.2.0
Agora project
test_datatype_conversion.cc File Reference

Unit tests for data type and bit-level conversions. More...

#include <gtest/gtest.h>
#include <bitset>
#include "comms-lib.h"
#include "datatype_conversion.h"
#include "utils_ldpc.h"
Include dependency graph for test_datatype_conversion.cc:

Functions

 TEST (Modulation, adapt_bits_for_mod_one)
 
 TEST (Modulation, adapt_bits_for_mod_stress)
 
 TEST (SIMD, float_32_to_16)
 
 TEST (SIMD, int16_to_float)
 
 TEST (SIMD, int16_to_float_cplen)
 
 TEST (SIMD, float_to_int_saturate)
 
int main (int argc, char **argv)
 

Variables

static constexpr size_t kSIMDTestNum = 1024
 

Detailed Description

Unit tests for data type and bit-level conversions.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ TEST() [1/6]

TEST ( Modulation  ,
adapt_bits_for_mod_one   
)
Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( Modulation  ,
adapt_bits_for_mod_stress   
)
Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( SIMD  ,
float_32_to_16   
)
Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( SIMD  ,
float_to_int_saturate   
)
Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( SIMD  ,
int16_to_float   
)
Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( SIMD  ,
int16_to_float_cplen   
)
Here is the call graph for this function:

Variable Documentation

◆ kSIMDTestNum

constexpr size_t kSIMDTestNum = 1024
staticconstexpr