summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/math
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-08-18 00:06:58 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-08-18 00:06:58 +0000
commit297dc834b5987fe1570e86a8e4295c8ec41c11bd (patch)
tree618cf32e5f7b0e6a6e5ae357d621bee5935c5acf /src/VBox/Runtime/common/math
parent404abfb8be3edf7b6bc7e1c24a2bf7eb01800a24 (diff)
downloadVirtualBox-svn-297dc834b5987fe1570e86a8e4295c8ec41c11bd.tar.gz
IPRT/nocrt: Fixed div/0 bug in feraiseexcept. bugref:10261
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@96278 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/common/math')
-rw-r--r--src/VBox/Runtime/common/math/feraiseexcept.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/Runtime/common/math/feraiseexcept.asm b/src/VBox/Runtime/common/math/feraiseexcept.asm
index 6d580fff8d8..716604c9cf0 100644
--- a/src/VBox/Runtime/common/math/feraiseexcept.asm
+++ b/src/VBox/Runtime/common/math/feraiseexcept.asm
@@ -93,8 +93,8 @@ RT_NOCRT_BEGINPROC feraiseexcept
test cl, X86_FSW_ZE
jz .not_ze
%ifdef RT_NOCRT_RAISE_FPU_EXCEPT_IN_SSE_MODE
- movss xmm0, [g_r32Zero xWrtRIP]
movss xmm0, [g_r32One xWrtRIP]
+ movss xmm1, [g_r32Zero xWrtRIP]
divss xmm0, xmm1
%else
fnstenv [xBP - 20h]