HPM SDK
HPMicro Software Development Kit
hpm_tfa_drv.h File Reference

Go to the source code of this file.

Functions

float hpm_tfa_inv_f32 (float src)
 Inversion value calculation. More...
 
float hpm_tfa_sqrt_f32 (float src)
 Square Root Calculations. More...
 
float hpm_tfa_sin_f32 (float src)
 Sine value calculation. More...
 
float hpm_tfa_cos_f32 (float src)
 Cosine value calculation. More...
 
float hpm_tfa_power2_f32 (float src)
 Power 2 value calculation. More...
 
float hpm_tfa_log2_f32 (float src)
 Logarithmic function value calculation. More...
 
float hpm_tfa_atan_f32 (float src)
 ATAN value calculation. More...
 
float hpm_tfa_invsqrt_f32 (float src)
 INVSQRT value calculation. More...
 

Function Documentation

◆ hpm_tfa_atan_f32()

float hpm_tfa_atan_f32 ( float  src)

ATAN value calculation.

Parameters
[in]srcinput value
Returns
Atan value

if src < -1, dst = -0.125 if src > 1, dst = 0.125

◆ hpm_tfa_cos_f32()

float hpm_tfa_cos_f32 ( float  src)

Cosine value calculation.

Parameters
[in]srcinput value
Returns
cos value

◆ hpm_tfa_inv_f32()

float hpm_tfa_inv_f32 ( float  src)

Inversion value calculation.

Parameters
[in]srcinput value
Returns
Inversion value

if src =0 , dst = inf

◆ hpm_tfa_invsqrt_f32()

float hpm_tfa_invsqrt_f32 ( float  src)

INVSQRT value calculation.

Parameters
[in]srcinput value
Returns
Invsqrt value

if src < 0, dst = nan if src = 0, dst = inf

◆ hpm_tfa_log2_f32()

float hpm_tfa_log2_f32 ( float  src)

Logarithmic function value calculation.

Parameters
[in]srcinput value
Returns
log value

if src < 0, dst = nan if src = 0, dst = -inf

◆ hpm_tfa_power2_f32()

float hpm_tfa_power2_f32 ( float  src)

Power 2 value calculation.

Parameters
[in]srcinput value
Returns
power value

◆ hpm_tfa_sin_f32()

float hpm_tfa_sin_f32 ( float  src)

Sine value calculation.

Parameters
[in]srcinput value
Returns
Sin value

◆ hpm_tfa_sqrt_f32()

float hpm_tfa_sqrt_f32 ( float  src)

Square Root Calculations.

Parameters
[in]srcinput value
Returns
Sqrt value

if src < 0, dst = nan