aboutsummaryrefslogtreecommitdiffstats
path: root/code/win32
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-23 02:59:15 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-23 02:59:15 +0000
commit48addd68a8c8d0c026be2d3b87ea6ce23509da91 (patch)
tree51a4a3f689906393882efed44c3387851a7d3dce /code/win32
parent5427364410d9be3d29e35b2d9fd4194c3878e3c0 (diff)
downloadioquake3-aero-48addd68a8c8d0c026be2d3b87ea6ce23509da91.tar.gz
ioquake3-aero-48addd68a8c8d0c026be2d3b87ea6ce23509da91.zip
* Replaced lots of __linux__ || __FreeBSD__ with __GNUC__
* MinGW port now uses asm versions of SnapVector and ftol * Improved the handling of mangled symbols in vm_x86.c git-svn-id: svn://svn.icculus.org/quake3/trunk@99 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/win32')
-rw-r--r--code/win32/win_shared.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/code/win32/win_shared.c b/code/win32/win_shared.c
index 0179edc..cbaa8d4 100644
--- a/code/win32/win_shared.c
+++ b/code/win32/win_shared.c
@@ -53,25 +53,14 @@ int Sys_Milliseconds (void)
return sys_curtime;
}
+#ifndef __GNUC__ //see snapvectora.s
/*
================
Sys_SnapVector
================
*/
-long fastftol( float f ) {
-#ifndef __MINGW32__
- static int tmp;
- __asm fld f
- __asm fistp tmp
- __asm mov eax, tmp
-#else
- return (long)f;
-#endif
-}
-
void Sys_SnapVector( float *v )
{
-#ifndef __MINGW32__
int i;
float f;
@@ -89,19 +78,8 @@ void Sys_SnapVector( float *v )
__asm fld f;
__asm fistp i;
*v = i;
- /*
- *v = fastftol(*v);
- v++;
- *v = fastftol(*v);
- v++;
- *v = fastftol(*v);
- */
-#else
- v[0] = rint(v[0]);
- v[1] = rint(v[1]);
- v[2] = rint(v[2]);
-#endif
}
+#endif
/*