diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-02-06 23:40:20 +0300 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2011-02-07 15:27:21 +0300 |
commit | 06d6c024cde24f42d0980725b9e1d50713af646e (patch) | |
tree | aaacdfa9b266c598255789febad11446686e5ee9 /src/sv_user.c | |
parent | 9176271b895c4e71d7e383cb8655a7b545b73b33 (diff) |
Rework the way FPU issues are handled on i386.
Kill Sys_FixFPCW. Instead implement inline macros that wrap around
critical sections of code (pmove and game library calls) and push/pop
FPU control word dynamically.
Diffstat (limited to 'src/sv_user.c')
-rw-r--r-- | src/sv_user.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sv_user.c b/src/sv_user.c index b4ba1be..31ee6e6 100644 --- a/src/sv_user.c +++ b/src/sv_user.c @@ -1193,6 +1193,9 @@ void SV_ExecuteClientMessage( client_t *client ) { int net_drop; size_t len; + X86_PUSH_FPCW; + X86_SINGLE_FPCW; + sv_client = client; sv_player = sv_client->edict; @@ -1358,5 +1361,7 @@ void SV_ExecuteClientMessage( client_t *client ) { sv_client = NULL; sv_player = NULL; + + X86_POP_FPCW; } |