LibreOffice Module tools (master) 1
|
#include <tools/fix16.hxx>
Go to the source code of this file.
Functions | |
static uint32_t | fix_abs (fix16_t in) |
fix16_t | fix16_mul (fix16_t inArg0, fix16_t inArg1) |
static uint8_t | clz (uint32_t x) |
fix16_t | fix16_div (fix16_t a, fix16_t b) |
Variables | |
const fix16_t | fix16_minimum = 0x80000000 |
const fix16_t | fix16_overflow = 0x80000000 |
|
static |
Divides the first given fix16_t by the second and returns the result.
Definition at line 104 of file fix16.cxx.
References a, clz(), div(), fix16_minimum, fix16_overflow, fix_abs(), result, and shift.
Multiplies the two given fix16_t's and returns the result.
Definition at line 50 of file fix16.cxx.
References fix16_overflow, and result.
|
inlinestatic |
Definition at line 30 of file fix16.cxx.
References fix16_minimum, and in.
Referenced by fix16_div().
const fix16_t fix16_minimum = 0x80000000 |
the minimum value of fix16_t
Definition at line 27 of file fix16.cxx.
Referenced by fix16_div(), and fix_abs().
const fix16_t fix16_overflow = 0x80000000 |
the value used to indicate overflows
Definition at line 28 of file fix16.cxx.
Referenced by fix16_div(), and fix16_mul().