XCORE SDK
XCORE Software Development Kit
Public Attributes | List of all members
bfp_s32_t Struct Reference

A block floating-point vector of 32-bit elements. More...

#include <xs3_math_types.h>

Public Attributes

int32_t * data
 
exponent_t exp
 
headroom_t hr
 
unsigned length
 
bfp_flags_e flags
 

Detailed Description

A block floating-point vector of 32-bit elements.

Initialized with the bfp_s32_init() function.

The logical quantity represented by each element of this vector is: data[i]*2^(exp) where the multiplication and exponentiation are using real (non-modular) arithmetic.

The BFP API keeps the hr field up-to-date with the current headroom of data[] so as to minimize precision loss as elements become small. [bfp_s32_t]

Member Data Documentation

◆ data

int32_t* bfp_s32_t::data

Pointer to the underlying element buffer.

◆ exp

exponent_t bfp_s32_t::exp

Exponent associated with the vector.

◆ flags

bfp_flags_e bfp_s32_t::flags

BFP vector flags. Users should not normally modify these manually.

◆ hr

headroom_t bfp_s32_t::hr

Current headroom in the data[]

◆ length

unsigned bfp_s32_t::length

Current size of data[], expressed in elements


The documentation for this struct was generated from the following file: