mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 10:11:01 +00:00
Get rid of the unused Sys_FPU_ClearStack
This commit is contained in:
parent
6e0c766d14
commit
ca04dd36d8
3 changed files with 0 additions and 31 deletions
neo/sys
|
@ -428,9 +428,6 @@ bool Sys_FPU_StackIsEmpty( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Sys_FPU_ClearStack( void ) {
|
||||
}
|
||||
|
||||
const char *Sys_FPU_GetState( void ) {
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue