File:  [DVB] / dietlibc / i386 / stpcpy.S
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jun 23 14:39:13 2003 UTC (20 years, 11 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
add cld

.text
.global stpcpy
.type	stpcpy,@function
stpcpy:
	pushl %edi
	pushl %esi
	movl 0xc(%esp),  %edi
	movl 0x10(%esp), %esi
	cld
.Lcopy:
	lodsb
	stosb
	testb %al, %al
	jnz .Lcopy

	movl %edi, %eax
	decl %eax
	popl %esi
	popl %edi
	ret
.Lende:
.size stpcpy,.Lende-stpcpy

LinuxTV legacy CVS <linuxtv.org/cvs>