Skip to content

Commit

Permalink
Don't reinit FPU, just clear FPU error flags
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Aug 15, 2024
1 parent 4cab4a9 commit d88d9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7091
#define BUILD_NUMBER 7092
3 changes: 2 additions & 1 deletion Utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,8 @@ void Utils::ResetInvalidFPUState()
{
if (_statusfp() & _SW_INVALID)
{
__asm { fninit }
_clearfp(); // Clear invalid operation flag
_statusfp(); // Re-read status after clearing
}
}

Expand Down

0 comments on commit d88d9ed

Please sign in to comment.