fixed.c File Reference

Implementation of some mad_fixed_t type operators. More...

#include "global.h"
#include "fixed.h"

Include dependency graph for fixed.c:

Go to the source code of this file.

Functions

mad_fixed_t mad_f_abs (mad_fixed_t x)
 return absolute value of a fixed-point number.
mad_fixed_t mad_f_div (mad_fixed_t x, mad_fixed_t y)
 perform division using fixed-point math.


Detailed Description

Implementation of some mad_fixed_t type operators.

Definition in file fixed.c.


Function Documentation

mad_fixed_t mad_f_abs ( mad_fixed_t  x  ) 

return absolute value of a fixed-point number.

Definition at line 36 of file fixed.c.

Referenced by mad_f_div().

mad_fixed_t mad_f_div ( mad_fixed_t  x,
mad_fixed_t  y 
)

perform division using fixed-point math.

Definition at line 44 of file fixed.c.

References mad_f_abs(), MAD_F_FRACBITS, mad_f_intpart, MAD_F_MAX, and MAD_F_MIN.

Here is the call graph for this function:


Generated on Tue Jun 10 12:14:17 2008 for libmad by  doxygen 1.5.5