VirtualBox

Ignore:
Timestamp:
Jan 28, 2009 2:26:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42148
Message:

IPRT/math: use xSP and friends from asmdefs.mac instead of cooking our own in each file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/math/ldexpl.asm

    • Property svn:keywords changed from Id to Author Date Id Revision
    r8256 r16316  
    3333BEGINCODE
    3434
    35 %ifdef RT_ARCH_AMD64
    36  %define _SP rsp
    37  %define _BP rbp
    38  %define _S  8
    39 %else
    40  %define _SP esp
    41  %define _BP ebp
    42  %define _S  4
    43 %endif
    44 
    4535;;
    4636; Computes lrd * 2^exp
    4737; @returns st(0)
    48 ; @param    lrd     [rbp + _S*2]
     38; @param    lrd     [rbp + xS*2]
    4939; @param    exp     [ebp + 14h]  GCC:edi  MSC:ecx
    5040BEGINPROC RT_NOCRT(ldexpl)
    51     push    _BP
    52     mov     _BP, _SP
    53     sub     _SP, 10h
     41    push    xBP
     42    mov     xBP, xSP
     43    sub     xSP, 10h
    5444
    5545    ; load exp
     
    5848    fild    dword [rsp]
    5949%else
    60     fild    dword [ebp + _S*2 + RTLRD_CB]
     50    fild    dword [ebp + xS*2 + RTLRD_CB]
    6151%endif
    62     fld     tword [_BP + _S*2]
     52    fld     tword [xBP + xS*2]
    6353    fscale
    6454    fstp    st1
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette