From 6a71409a0622050f9a682d4e3b02419c444febe5 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 13 Jun 2011 09:56:39 +0000 Subject: - Add MASM assembler files for MSVC x64 projects to support vm_x86 in x64 mode - Clean up ftol()/snapvector() mess - Make use of SSE instructions for ftol()/snapvector() if available - move ftol/snapvector pure assembler to inline assembler, this will add x86_64 and improve support for different calling conventions - Set FPU control word at program startup to get consistent behaviour on all platforms --- src/client/cl_cgame.c | 2 +- src/client/snd_wavelet.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index c1b58f2c..c86eb248 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -698,7 +698,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { case CG_REAL_TIME: return Com_RealTime( VMA(1) ); case CG_SNAPVECTOR: - Sys_SnapVector( VMA(1) ); + Q_SnapVector(VMA(1)); return 0; case CG_CIN_PLAYCINEMATIC: diff --git a/src/client/snd_wavelet.c b/src/client/snd_wavelet.c index e75323c0..8c392cdc 100644 --- a/src/client/snd_wavelet.c +++ b/src/client/snd_wavelet.c @@ -23,8 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "snd_local.h" -long myftol( float f ); - #define C0 0.4829629131445341 #define C1 0.8365163037378079 #define C2 0.2241438680420134 -- cgit