VirtualBox

Ignore:
Timestamp:
Aug 20, 2022 3:08:08 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153190
Message:

IPRT/nocrt: Implemented wcslen. bugref:10261

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/wcslen.asm

    r96336 r96373  
    3131;;
    3232; @param    psz     gcc: rdi  msc: rcx  x86: [esp+4]  wcall: eax
    33 RT_NOCRT_BEGINPROC strlen
     33RT_NOCRT_BEGINPROC wcslen
    3434        cld
    3535%ifdef RT_ARCH_AMD64
     
    5050        mov     xCX, -1
    5151        xor     eax, eax
    52         repne   scasb
     52        repne   scasw
    5353
    5454        ; found it
    5555        neg     xCX
    5656        lea     xAX, [xCX - 2]
     57        shr     xCX, 1
    5758%ifdef ASM_CALL64_MSC
    5859        mov     rdi, r9
    59 %endif
    60 %ifdef RT_ARCH_X86
     60%elifdef RT_ARCH_X86
    6161        mov     edi, edx
    6262%endif
    6363        ret
    64 ENDPROC RT_NOCRT(strlen)
     64ENDPROC RT_NOCRT(wcslen)
    6565
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