Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# fixedpt.c File Reference

## Detailed Description

Definition in file fixedpt.c.

`#include "fixedpt.h"`

Go to the source code of this file.

## Functions
void | fixedptInit (u08 fixedPtBits)
| fixedptInit() initializes fixed-point math function library
s32 | fixedptConvertFromInt (s32 int_number)
| convert integer to fixed-point number
s32 | fixedptConvertToInt (s32 fp_number)
| convert fixed-point number to integer
s32 | fixedptAdd (s32 a, s32 b)
| add a and b (a+b) with fixed-point math
s32 | fixedptSubtract (s32 a, s32 b)
| subtract a and b (a-b) with fixed-point math
s32 | fixedptMultiply (s32 a, s32 b)
| multiply a and b (a*b) with fixed-point math
s32 | fixedptDivide (s32 numer, s32 denom)
| divide numer by denom (numer/denom) with fixed-point math
## Variables
u08 | FixedPtBits