Changeset 96373 in vbox
- Timestamp:
- Aug 20, 2022 3:08:08 AM (2 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r96371 r96373 1984 1984 common/string/strstr.cpp \ 1985 1985 common/string/strcspn.cpp \ 1986 common/string/strpbrk.cpp 1986 common/string/strpbrk.cpp \ 1987 common/string/wcslen.asm 1988 1987 1989 RuntimeR3_SOURCES.amd64 = $(RuntimeBaseR3_SOURCES.amd64) \ 1988 1990 common/math/atan.asm \ … … 2062 2064 common/string/strstr.cpp \ 2063 2065 common/string/strcspn.cpp \ 2064 common/string/strpbrk.cpp 2066 common/string/strpbrk.cpp \ 2067 common/string/wcslen.asm 2068 2065 2069 RuntimeR3_SOURCES.win = $(filter-out \ 2066 2070 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \ -
trunk/src/VBox/Runtime/common/string/wcslen.asm
r96336 r96373 31 31 ;; 32 32 ; @param psz gcc: rdi msc: rcx x86: [esp+4] wcall: eax 33 RT_NOCRT_BEGINPROC strlen33 RT_NOCRT_BEGINPROC wcslen 34 34 cld 35 35 %ifdef RT_ARCH_AMD64 … … 50 50 mov xCX, -1 51 51 xor eax, eax 52 repne scas b52 repne scasw 53 53 54 54 ; found it 55 55 neg xCX 56 56 lea xAX, [xCX - 2] 57 shr xCX, 1 57 58 %ifdef ASM_CALL64_MSC 58 59 mov rdi, r9 59 %endif 60 %ifdef RT_ARCH_X86 60 %elifdef RT_ARCH_X86 61 61 mov edi, edx 62 62 %endif 63 63 ret 64 ENDPROC RT_NOCRT( strlen)64 ENDPROC RT_NOCRT(wcslen) 65 65 -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r96338 r96373 582 582 ../common/string/strcmp.asm \ 583 583 ../common/string/strcpy.asm \ 584 ../common/string/strlen.asm 584 ../common/string/strlen.asm \ 585 ../common/string/wcslen.asm 585 586 586 587 tstRTNoCrt-2_TEMPLATE = VBOXR3TSTEXE -
trunk/src/VBox/Runtime/testcase/tstNoCrt-1.cpp
r93115 r96373 493 493 cch = RT_NOCRT(strlen)(s_szTest3); CHECK_CCH(sizeof(s_szTest3) - 1); 494 494 495 #ifdef _MSC_VER 496 /* 497 * Some simple wcslen checks. 498 */ 499 RTPrintf("tstNoCrt-1: wcslen\n"); 500 cch = RT_NOCRT(wcslen)(L""); CHECK_CCH(0); 501 cch = RT_NOCRT(wcslen)(L"1"); CHECK_CCH(1); 502 cch = RT_NOCRT(wcslen)(L"12"); CHECK_CCH(2); 503 cch = RT_NOCRT(wcslen)(L"123"); CHECK_CCH(3); 504 cch = RT_NOCRT(wcslen)(L"1234"); CHECK_CCH(4); 505 cch = RT_NOCRT(wcslen)(L"12345"); CHECK_CCH(5); 506 #endif 507 495 508 /* 496 509 * Summary.
Note:
See TracChangeset
for help on using the changeset viewer.