Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

Custom numeric library for integer calculation with high correlation to float. More...

Data Structures

struct  nrf_dsp_f24_s
 Container for Float24 representation. More...
 

Macros

#define NRF_DSP_F24_SIGNED   0x40
 
#define NRF_DSP_F24_UNSIGNED   0
 
#define NRF_DSP_F24_SIGN(x)
 
#define f24_init   nrf_dsp_f24_init
 
#define i16_to_f24   nrf_dsp_i16_to_f24
 
#define i8_to_f24   nrf_dsp_i8_to_f24
 
#define f24_to_i32   nrf_dsp_f24_to_i32
 
#define f24_mul   nrf_dsp_f24_mul
 
#define f24_add   nrf_dsp_f24_add
 
#define f24_addx   nrf_dsp_f24_addx
 
#define f24_div   nrf_dsp_f24_div
 
#define f24_sqrt   nrf_dsp_f24_sqrt
 
#define f24_get_exp   nrf_dsp_f24_get_exp
 

Typedefs

typedef struct nrf_dsp_f24_s nrf_dsp_f24_t
 Container for Float24 representation.
 

Functions

nrf_dsp_f24_t nrf_dsp_i16_to_f24 (int16_t x)
 Convert INT16 to Float24.
 
nrf_dsp_f24_t nrf_dsp_i8_to_f24 (int8_t x)
 Convert INT8 to Float24.
 
int32_t nrf_dsp_f24_to_i32 (nrf_dsp_f24_t x, int8_t required_exp)
 Convert Float24 to INT32 value.
 
nrf_dsp_f24_t nrf_dsp_f24_mul (nrf_dsp_f24_t x, nrf_dsp_f24_t y)
 Float24 multiplication (x * y) -> z.
 
nrf_dsp_f24_t nrf_dsp_f24_add (nrf_dsp_f24_t x, nrf_dsp_f24_t y)
 Float24 addition (x + y) -> z.
 
nrf_dsp_f24_t nrf_dsp_f24_div (nrf_dsp_f24_t x, nrf_dsp_f24_t y)
 Float24 division (x / y) -> z.
 
nrf_dsp_f24_t nrf_dsp_f24_sqrt (nrf_dsp_f24_t x)
 Float24 square root (sqrt(x)) -> z.
 
nrf_dsp_f24_t nrf_dsp_f24_init (uint16_t mantissa, int8_t exp, uint8_t sign)
 Initialize Float24 value from metainformaton.
 
nrf_dsp_f24_t nrf_dsp_f24_addx (uint16_t x_man, int8_t x_exp, uint8_t x_sign, uint16_t y_man, int8_t y_exp, uint8_t y_sign)
 Extended Float24 addition function (x + y) -> z.
 
const uint8_t * nrf_dsp_f24_get_highbit_helper (void)
 Get a pointer to an internal utility array [0-255] to help figure out how many bits is occupied in byte.
 
__NRF_DSP_STATIC_FORCEINLINE int8_t nrf_dsp_f24_get_exp (nrf_dsp_f24_t x)
 Get exponent of Float24 value.
 

Detailed Description

Custom numeric library for integer calculation with high correlation to float.