From ca04dd36d8acf6968b74e55cbaca1d9127758061 Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 21 Dec 2011 18:13:35 +0100 Subject: [PATCH] Get rid of the unused Sys_FPU_ClearStack --- neo/sys/posix/posix_main.cpp | 3 --- neo/sys/sys_public.h | 3 --- neo/sys/win32/win_cpu.cpp | 25 ------------------------- 3 files changed, 31 deletions(-) diff --git a/neo/sys/posix/posix_main.cpp b/neo/sys/posix/posix_main.cpp index 45017b75..f3f9ae8e 100644 --- a/neo/sys/posix/posix_main.cpp +++ b/neo/sys/posix/posix_main.cpp @@ -428,9 +428,6 @@ bool Sys_FPU_StackIsEmpty( void ) { return true; } -void Sys_FPU_ClearStack( void ) { -} - const char *Sys_FPU_GetState( void ) { return ""; } diff --git a/neo/sys/sys_public.h b/neo/sys/sys_public.h index 86e81667..be16da8d 100644 --- a/neo/sys/sys_public.h +++ b/neo/sys/sys_public.h @@ -151,9 +151,6 @@ int Sys_GetProcessorId( void ); // returns true if the FPU stack is empty bool Sys_FPU_StackIsEmpty( void ); -// empties the FPU stack -void Sys_FPU_ClearStack( void ); - // returns the FPU state as a string const char * Sys_FPU_GetState( void ); diff --git a/neo/sys/win32/win_cpu.cpp b/neo/sys/win32/win_cpu.cpp index 6f308d0b..a37ca854 100644 --- a/neo/sys/win32/win_cpu.cpp +++ b/neo/sys/win32/win_cpu.cpp @@ -142,31 +142,6 @@ empty: #endif } -/* -=============== -Sys_FPU_ClearStack -=============== -*/ -void Sys_FPU_ClearStack( void ) { -#ifdef _MSC_VER - __asm { - mov eax, statePtr - fnstenv [eax] - mov eax, [eax+8] - xor eax, 0xFFFFFFFF - mov edx, (3<<14) - emptyStack: - mov ecx, eax - and ecx, edx - jz done - fstp st - shr edx, 2 - jmp emptyStack - done: - } -#endif -} - /* =============== Sys_FPU_GetState