diff options
Diffstat (limited to 'src/VBox/Runtime/common/math')
24 files changed, 50 insertions, 50 deletions
diff --git a/src/VBox/Runtime/common/math/ceill.asm b/src/VBox/Runtime/common/math/ceill.asm index 502181cd..ec2d0371 100644 --- a/src/VBox/Runtime/common/math/ceill.asm +++ b/src/VBox/Runtime/common/math/ceill.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -38,7 +38,7 @@ BEGINPROC RT_NOCRT(ceill) mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] ; Make it round up by modifying the fpu control word. fstcw [xBP - 10h] diff --git a/src/VBox/Runtime/common/math/cosl.asm b/src/VBox/Runtime/common/math/cosl.asm index c37c3c6a..ab29ccb5 100644 --- a/src/VBox/Runtime/common/math/cosl.asm +++ b/src/VBox/Runtime/common/math/cosl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,13 +31,13 @@ BEGINCODE ;; ; compute the cosine of ldr, measured in radians. ; @returns st(0) -; @param lrd [rbp + xS*2] +; @param lrd [rbp + xCB*2] BEGINPROC RT_NOCRT(cosl) push xBP mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fcos fnstsw ax test ah, 4 diff --git a/src/VBox/Runtime/common/math/fabs.asm b/src/VBox/Runtime/common/math/fabs.asm index 18ca0115..ea510f2d 100644 --- a/src/VBox/Runtime/common/math/fabs.asm +++ b/src/VBox/Runtime/common/math/fabs.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -48,7 +48,7 @@ BEGINPROC RT_NOCRT(fabs) movsd xmm0, [xSP] %else - fld qword [xBP + xS*2] + fld qword [xBP + xCB*2] fabs %endif diff --git a/src/VBox/Runtime/common/math/fabsf.asm b/src/VBox/Runtime/common/math/fabsf.asm index c58d2fc4..0bb77913 100644 --- a/src/VBox/Runtime/common/math/fabsf.asm +++ b/src/VBox/Runtime/common/math/fabsf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -48,7 +48,7 @@ BEGINPROC RT_NOCRT(fabsf) movsd xmm0, [xSP] %else - fld dword [xBP + xS*2] + fld dword [xBP + xCB*2] fabs %endif diff --git a/src/VBox/Runtime/common/math/fabsl.asm b/src/VBox/Runtime/common/math/fabsl.asm index 1302b00d..b7a3dbf0 100644 --- a/src/VBox/Runtime/common/math/fabsl.asm +++ b/src/VBox/Runtime/common/math/fabsl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,12 +31,12 @@ BEGINCODE ;; ; Compute the absolute value of lrd (|lrd|). ; @returns st(0) -; @param lrd [xSP + xS*2] +; @param lrd [xSP + xCB*2] BEGINPROC RT_NOCRT(fabsl) push xBP mov xBP, xSP - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fabs .done: diff --git a/src/VBox/Runtime/common/math/floor.asm b/src/VBox/Runtime/common/math/floor.asm index 7d98b4b4..5df92114 100644 --- a/src/VBox/Runtime/common/math/floor.asm +++ b/src/VBox/Runtime/common/math/floor.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -41,7 +41,7 @@ BEGINPROC RT_NOCRT(floor) movsd [xSP], xmm0 fld qword [xSP] %else - fld qword [xBP + xS*2] + fld qword [xBP + xCB*2] %endif ; Make it round down by modifying the fpu control word. diff --git a/src/VBox/Runtime/common/math/floorf.asm b/src/VBox/Runtime/common/math/floorf.asm index b5491919..e5c798a2 100644 --- a/src/VBox/Runtime/common/math/floorf.asm +++ b/src/VBox/Runtime/common/math/floorf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -41,7 +41,7 @@ BEGINPROC RT_NOCRT(floorf) movss [xSP], xmm0 fld dword [xSP] %else - fld dword [xBP + xS*2] + fld dword [xBP + xCB*2] %endif ; Make it round down by modifying the fpu control word. diff --git a/src/VBox/Runtime/common/math/floorl.asm b/src/VBox/Runtime/common/math/floorl.asm index c27ada71..6a89c0ad 100644 --- a/src/VBox/Runtime/common/math/floorl.asm +++ b/src/VBox/Runtime/common/math/floorl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -37,7 +37,7 @@ BEGINPROC RT_NOCRT(floorl) mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] ; Make it round down by modifying the fpu control word. fstcw [xBP - 10h] diff --git a/src/VBox/Runtime/common/math/ldexpl.asm b/src/VBox/Runtime/common/math/ldexpl.asm index f53a4e43..f64ca4bd 100644 --- a/src/VBox/Runtime/common/math/ldexpl.asm +++ b/src/VBox/Runtime/common/math/ldexpl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,7 +31,7 @@ BEGINCODE ;; ; Computes lrd * 2^exp ; @returns st(0) -; @param lrd [rbp + xS*2] +; @param lrd [rbp + xCB*2] ; @param exp [ebp + 14h] GCC:edi MSC:ecx BEGINPROC RT_NOCRT(ldexpl) push xBP @@ -43,9 +43,9 @@ BEGINPROC RT_NOCRT(ldexpl) mov [rsp], edi fild dword [rsp] %else - fild dword [ebp + xS*2 + RTLRD_CB] + fild dword [ebp + xCB*2 + RTLRD_CB] %endif - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fscale fstp st1 diff --git a/src/VBox/Runtime/common/math/llrint.asm b/src/VBox/Runtime/common/math/llrint.asm index c870b913..528bdf09 100644 --- a/src/VBox/Runtime/common/math/llrint.asm +++ b/src/VBox/Runtime/common/math/llrint.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/llrintf.asm b/src/VBox/Runtime/common/math/llrintf.asm index d0c23db7..fcffd9ce 100644 --- a/src/VBox/Runtime/common/math/llrintf.asm +++ b/src/VBox/Runtime/common/math/llrintf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/llrintl.asm b/src/VBox/Runtime/common/math/llrintl.asm index a0ce4912..c30bdfac 100644 --- a/src/VBox/Runtime/common/math/llrintl.asm +++ b/src/VBox/Runtime/common/math/llrintl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,13 +31,13 @@ BEGINCODE ;; ; Round rd to the nearest integer value, rounding according to the current rounding direction. ; @returns 32-bit: edx:eax 64-bit: rax -; @param lrd [rbp + xS*2] +; @param lrd [rbp + xCB*2] BEGINPROC RT_NOCRT(llrintl) push xBP mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fistp qword [xSP] fwait %ifdef RT_ARCH_AMD64 diff --git a/src/VBox/Runtime/common/math/logl.asm b/src/VBox/Runtime/common/math/logl.asm index 83e7de96..b203c4c1 100644 --- a/src/VBox/Runtime/common/math/logl.asm +++ b/src/VBox/Runtime/common/math/logl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,14 +31,14 @@ BEGINCODE ;; ; compute the natural logarithm of lrd ; @returns st(0) -; @param lrd [rbp + xS*2] +; @param lrd [rbp + xCB*2] BEGINPROC RT_NOCRT(logl) push xBP mov xBP, xSP sub xSP, 10h fldln2 ; st0=log(2) - fld tword [xBP + xS*2] ; st1=log(2) st0=lrd + fld tword [xBP + xCB*2] ; st1=log(2) st0=lrd fld st0 ; st1=log(2) st0=lrd st0=lrd fsub qword [.one xWrtRIP] ; st2=log(2) st1=lrd st0=lrd-1.0 fld st0 ; st3=log(2) st2=lrd st1=lrd-1.0 st0=lrd-1.0 diff --git a/src/VBox/Runtime/common/math/lrint.asm b/src/VBox/Runtime/common/math/lrint.asm index 270a79f8..130598ab 100644 --- a/src/VBox/Runtime/common/math/lrint.asm +++ b/src/VBox/Runtime/common/math/lrint.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/lrintf.asm b/src/VBox/Runtime/common/math/lrintf.asm index 99729497..7bc70032 100644 --- a/src/VBox/Runtime/common/math/lrintf.asm +++ b/src/VBox/Runtime/common/math/lrintf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/lrintl.asm b/src/VBox/Runtime/common/math/lrintl.asm index f336af6a..72795eb3 100644 --- a/src/VBox/Runtime/common/math/lrintl.asm +++ b/src/VBox/Runtime/common/math/lrintl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,13 +31,13 @@ BEGINCODE ;; ; Round rd to the nearest integer value, rounding according to the current rounding direction. ; @returns 32-bit: eax 64-bit: rax -; @param lrd [rbp + xS*2] +; @param lrd [rbp + xCB*2] BEGINPROC RT_NOCRT(lrintl) push xBP mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] %ifdef RT_ARCH_AMD64 fistp qword [xSP] fwait diff --git a/src/VBox/Runtime/common/math/remainder.asm b/src/VBox/Runtime/common/math/remainder.asm index 117aa502..77419139 100644 --- a/src/VBox/Runtime/common/math/remainder.asm +++ b/src/VBox/Runtime/common/math/remainder.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/remainderf.asm b/src/VBox/Runtime/common/math/remainderf.asm index c9b079b7..d6f87aae 100644 --- a/src/VBox/Runtime/common/math/remainderf.asm +++ b/src/VBox/Runtime/common/math/remainderf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/remainderl.asm b/src/VBox/Runtime/common/math/remainderl.asm index 922f93a7..d5d53198 100644 --- a/src/VBox/Runtime/common/math/remainderl.asm +++ b/src/VBox/Runtime/common/math/remainderl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/Runtime/common/math/sinl.asm b/src/VBox/Runtime/common/math/sinl.asm index 57f5ab8b..4fb0d7c4 100644 --- a/src/VBox/Runtime/common/math/sinl.asm +++ b/src/VBox/Runtime/common/math/sinl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,13 +31,13 @@ BEGINCODE ;; ; Compute the sine of lrd ; @returns st(0) -; @param lrd [xSP + xS*2] +; @param lrd [xSP + xCB*2] BEGINPROC RT_NOCRT(sinl) push xBP mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fsin fnstsw ax test ah, 04h diff --git a/src/VBox/Runtime/common/math/tanl.asm b/src/VBox/Runtime/common/math/tanl.asm index 85e61d04..2fabc362 100644 --- a/src/VBox/Runtime/common/math/tanl.asm +++ b/src/VBox/Runtime/common/math/tanl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -31,13 +31,13 @@ BEGINCODE ;; ; Compute the sine of lrd ; @returns st(0) -; @param lrd [xSP + xS*2] +; @param lrd [xSP + xCB*2] BEGINPROC RT_NOCRT(tanl) push xBP mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] fptan fnstsw ax test ah, 04h ; check for C2 diff --git a/src/VBox/Runtime/common/math/trunc.asm b/src/VBox/Runtime/common/math/trunc.asm index 9ea36820..11d310cf 100644 --- a/src/VBox/Runtime/common/math/trunc.asm +++ b/src/VBox/Runtime/common/math/trunc.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -42,7 +42,7 @@ BEGINPROC RT_NOCRT(trunc) movsd [xSP], xmm0 fld qword [xSP] %else - fld qword [xBP + xS*2] + fld qword [xBP + xCB*2] %endif ; Make it truncate up by modifying the fpu control word. diff --git a/src/VBox/Runtime/common/math/truncf.asm b/src/VBox/Runtime/common/math/truncf.asm index 9fb8166c..5914d8ea 100644 --- a/src/VBox/Runtime/common/math/truncf.asm +++ b/src/VBox/Runtime/common/math/truncf.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -42,7 +42,7 @@ BEGINPROC RT_NOCRT(truncf) movss [xSP], xmm0 fld dword [xSP] %else - fld dword [xBP + xS*2] + fld dword [xBP + xCB*2] %endif ; Make it truncate up by modifying the fpu control word. diff --git a/src/VBox/Runtime/common/math/truncl.asm b/src/VBox/Runtime/common/math/truncl.asm index 45576833..b703cba0 100644 --- a/src/VBox/Runtime/common/math/truncl.asm +++ b/src/VBox/Runtime/common/math/truncl.asm @@ -4,7 +4,7 @@ ; ; -; Copyright (C) 2006-2007 Oracle Corporation +; Copyright (C) 2006-2010 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; @@ -38,7 +38,7 @@ BEGINPROC RT_NOCRT(truncl) mov xBP, xSP sub xSP, 10h - fld tword [xBP + xS*2] + fld tword [xBP + xCB*2] ; Make it truncate up by modifying the fpu control word. fstcw [xBP - 10h] |