Fixed-Point Math Function Library (fixedpt.c)
- This library provides basic fixed-point math operations implemented in C. Fixed-point math is a system by which integer variables can represent fractional values with a fixed precision "behind" the decimal point (like a fixed number of decimal places). Fixed-point math is typically 10x faster to execute than floating-point math, and should be used when a limited amount of fractional precision is sufficient (such as 4ths, or 10ths, or 128ths, etc).
- This library is really meant more as a demonstration of fixed-pt math. For best code-efficiency and speed, you are enouraged to take the code you see in these functions and copy it into your own code.
Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by