foo
[retroray] / src / gaw / gawswtnl.h
index d016291..0d78f5d 100644 (file)
@@ -129,29 +129,4 @@ void gaw_swtnl_subtex2d(int lvl, int x, int y, int xsz, int ysz, int fmt, void *
 void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum);
 
 
-#if defined(__i386__) || defined(__386__) || defined(MSDOS)
-
-#ifndef INLINE
-#if (__STDC_VERSION__ >= 199901) || defined(__GNUC__)
-#define INLINE inline
-#else
-#define INLINE __inline
-#endif
-#endif
-
-/* fast conversion of double -> 32bit int
- * for details see:
- *  - http://chrishecker.com/images/f/fb/Gdmfp.pdf
- *  - http://stereopsis.com/FPU.html#convert
- */
-static INLINE int32_t cround64(double val)
-{
-       val += 6755399441055744.0;
-       return *(int32_t*)&val;
-}
-#else
-#define cround64(x)    ((int32_t)(x))
-#endif
-
-
 #endif /* GAWSWTNL_H_ */