Changeset 1899
- Timestamp:
- Apr 24, 2005, 10:22:56 AM (20 years ago)
- Location:
- trunk/src/emx/src/lib/str/386
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/str/386/memcpy.s
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1898 r1899 8 8 / { 9 9 / size_t i; 10 / 10 / 11 11 / for (i = 0; i < n; ++i) 12 12 / ((char *)s1)[i] = ((char *)s2)[i]; … … 25 25 pushl %edi 26 26 movl 3*4(%esp), %edi /* s1 */ 27 movl %edi, %eax /* return value */ 27 28 movl 4*4(%esp), %esi /* s2 */ 28 29 movl 5*4(%esp), %ecx /* n */ 30 movl %ecx, %edx /* save for later */ 29 31 shrl $2, %ecx 30 32 rep 31 33 movsl 32 movl 5*4(%esp), %ecx/* n */34 movl %edx, %ecx /* n */ 33 35 andl $3, %ecx 34 36 rep 35 37 movsb 36 movl 3*4(%esp), %eax /* s1 */37 38 popl %edi 38 39 popl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strcpy.s
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1898 r1899 8 8 / { 9 9 / char *dst; 10 / 10 / 11 11 / dst = string1; 12 12 / while ((*dst = *string2) != 0) … … 26 26 pushl %edi 27 27 movl 3*4(%esp), %edi /* string1 */ 28 movl %edi, %edx /* save for later */ 28 29 movl 4*4(%esp), %esi /* string2 */ 29 30 ALIGN … … 32 33 testb %al, %al 33 34 jnz 1b 34 movl 3*4(%esp), %eax/* string1 */35 movl %edx, %eax /* string1 */ 35 36 popl %edi 36 37 popl %esi -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.