7 #define INLINE __inline
9 #elif defined(__WATCOMC__)
10 #define INLINE __inline
16 /* fast conversion of double -> 32bit int
18 * - http://chrishecker.com/images/f/fb/Gdmfp.pdf
19 * - http://stereopsis.com/FPU.html#convert
21 static INLINE int32_t cround64(double val)
23 val += 6755399441055744.0;
24 return *(int32_t*)&val;