File:  [DVB] / dietlibc / i386 / strlen.S
Revision 1.2: download - view: text, annotated - select for diffs
Thu Feb 21 22:53:43 2002 UTC (22 years, 3 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
fix Thomas Ogrisegg's name in the credits.
add i386 strrchr and new strlen.
add test suite entries for strrchr and strlen.


.text
.type   strlen,@function
.global strlen

strlen:
        movl    4(%esp),%ecx
        xorl    %eax,%eax
        jecxz   .Lnull
        decl    %eax
.Llbl:  incl    %eax
        cmpb    $0,(%ecx, %eax)
        jne     .Llbl
.Lnull: ret

.Lende:

.size    strlen,.Lende-strlen

LinuxTV legacy CVS <linuxtv.org/cvs>