Definition in file fix.cpp.
#include "common.h"
#include "fix.h"
Go to the source code of this file.
Defines | |
| #define | FIX_USE_64BIT_MUL |
| #define | FIX_UNROLL_DIV_LOOP |
Functions | |
| static int | Interpolate (const int *table, int value, int shift) |
|
|
If this macro is defined, the implementation of the multiply methods will use 64bit arithametic. This produces much more efficient code on some architecture/compiler combinations, like ARM+GCC. |
|
|
If this macro is defined, the implementation of the Fix::Div will use an unrolled loop. This may produce faster code. |
|
||||||||||||||||
|
Helper function for interpolatating lookup tables used by transcendental functions. If the lookup table represents the function f(x) over the range 0 to N<<shift, then it must contain entries for: { f(-1<<shift), f(0), f(1<<shift), f(2<<shift), ... f((N-1)<<shift)), f(N<<shift), f((N+1)<<shift)) }. This function then returns f(value). Notes:
|
1.4.4