Changeset 1215


Ignore:
Timestamp:
Feb 10, 2004, 9:57:15 PM (22 years ago)
Author:
bird
Message:

Fixed 0 bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/str/386/strnlen.s

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1214 r1215  
    2424        PROFILE_NOFRAME
    2525        pushl   %edi
     26        movl    3*4(%esp), %ecx         /* maxlen */
     27        xorl    %eax, %eax
     28        orl     %ecx, %ecx
     29        jnz     next
     30        jmp     done
     31next:
    2632        movl    2*4(%esp), %edi         /* string */
    2733        movl    %edi, %edx
    28         movl    3*4(%esp), %ecx         /* maxlen */
    29         xorl    %eax, %eax
    3034        repne
    3135        scasb
     
    3539        movzx   %cl, %ecx
    3640        subl    %ecx, %eax
     41done:
    3742        popl    %edi
    3843        EPILOGUE(___strnlen)
Note: See TracChangeset for help on using the changeset viewer.