VirtualBox

Ignore:
Timestamp:
Aug 18, 2022 2:52:12 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153096
Message:

IPRT/nocrt: Implemented expf. bugref:10261

File:
1 copied

Legend:

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

    r96281 r96282  
    11; $Id$
    22;; @file
    3 ; IPRT - No-CRT exp - AMD64 & X86.
     3; IPRT - No-CRT expf - AMD64 & X86.
    44;
    55
     
    3939; @returns st(0) / xmm0
    4040; @param    rd      [xSP + xCB*2] / xmm0
    41 RT_NOCRT_BEGINPROC exp
     41RT_NOCRT_BEGINPROC expf
    4242        push    xBP
    4343        SEH64_PUSH_xBP
     
    5252        ;
    5353%ifdef RT_ARCH_AMD64
    54         movsd   [xBP - 10h], xmm0
    55         fld     qword [xBP - 10h]
     54        movss   [xBP - 10h], xmm0
     55        fld     dword [xBP - 10h]
    5656%else
    57         fld     qword [xBP + xCB*2]
     57        fld     dword [xBP + xCB*2]
    5858%endif
    5959
     
    104104.return_val:
    105105%ifdef RT_ARCH_AMD64
    106         fstp    qword [xBP - 10h]
    107         movsd   xmm0, [xBP - 10h]
     106        fstp    dword [xBP - 10h]
     107        movss   xmm0, [xBP - 10h]
    108108%endif
    109109.return:
     
    138138%endif
    139139        jmp     .return
    140 ENDPROC   RT_NOCRT(exp)
     140ENDPROC   RT_NOCRT(expf)
    141141
Note: See TracChangeset for help on using the changeset viewer.

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