Fixed-Point Integer

Fixed-Point Integer Utilities. More...

Modules

Types
Fixed-Point Integer data types.
 
Macros
Fixed-Point Integer macros.
 

Functions

zos_result_t fpi_multiply (const fpi_word_t *x, const fpi_word_t *y, fpi_word_t *res)
 Multiple two signed FPI words. More...
 
zos_result_t fpi_divide (const fpi_word_t *x, const fpi_word_t *y, fpi_word_t *res)
 Divide signed FPI word by another signed FPI word. More...
 
const char * fpi_to_str_with_padding (char *buffer, const fpi_word_t *x, int max_dec, int padding)
 Convert FPI to string representation. More...
 
zos_result_t fpi_from_str (const char *str, fpi_word_t *res)
 Convert fixed-point integer string to FPI word. More...
 

Detailed Description

Fixed-Point Integer Utilities.

Function Documentation

zos_result_t fpi_divide ( const fpi_word_t x,
const fpi_word_t y,
fpi_word_t res 
)

Divide signed FPI word by another signed FPI word.

zos_result_t fpi_from_str ( const char *  str,
fpi_word_t res 
)

Convert fixed-point integer string to FPI word.

zos_result_t fpi_multiply ( const fpi_word_t x,
const fpi_word_t y,
fpi_word_t res 
)

Multiple two signed FPI words.

const char* fpi_to_str_with_padding ( char *  buffer,
const fpi_word_t x,
int  max_dec,
int  padding 
)

Convert FPI to string representation.