Main Page   Data Structures   File List   Data Fields   Globals  

/fixedpt.c File Reference

Fixed-point math function library. More...

#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


Detailed Description

Fixed-point math function library.

Definition in file fixedpt.c.


Generated on Fri Aug 1 10:42:43 2003 for Procyon AVRlib by doxygen1.2.18