3 * fast mathematics routines.
7 * A Fast, Compact Approximation of the Exponential Function
9 * IDSIA, Lugano, Switzerland
10 * http://www.inf.ethz.ch/~schraudo/pubs/exp.pdf
12 * Fast log() Function, by Laurent de Soras:
13 * http://www.flipcode.com/cgi-bin/msg.cgi?showThread=Tip-Fastlogfunction&forum=totd&id=-1
22 #define _SG_FMATH_HXX 1
25 # error This library requires C++
31 double fast_exp(double y);
32 double fast_log(double val);
33 double fast_log2 (double val);
34 double fast_log10(double val);
35 void fast_BSL(double &x, register unsigned long shiftAmount);
36 void fast_BSR(double &x, register unsigned long shiftAmount);
38 #endif // !_SG_FMATH_HXX