5 #define _double2fixmagic (68719476736.0*1.5)
6 /* 2^36 * 1.5, (52-_shiftamt=36) uses limited precisicion to floor */
8 /* 16.16 fixed point representation */
16 #endif /* BigEndian_ */
18 /* TODO: this optimization is very efficient: put it again when all works
20 #define F2I(dbl,i) {double d = dbl + _double2fixmagic; i = ((int*)&d)[iman_] >> _shiftamt;}
22 #define F2I(dbl,i) i=(int)dbl;
26 #define SINCOS(f,s,c) \
27 __asm__ __volatile__ ("fsincos" : "=t" (c), "=u" (s) : "0" (f))
29 #define SINCOS(f,s,c) {s=sin(f);c=cos(f);}
32 extern float sin256[256];
33 extern float cos256[256];