File:
[DVB] /
dietlibc /
i386 /
strrchr.S
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Mon Oct 13 14:39:23 2003 UTC (20 years, 7 months ago) by
sanjiyan
Branches:
MAIN
CVS tags:
HEAD
make the HUGE_VAL/HUGE_VALF macros arch (endien) independend
changeing __dtostr so that it returns "inf" for an inf-value not "nan"
fixing the strrchr bug (reported by Gernot Tenchio)
fixing the strtoul/strtoull bug (reported by Gernot Tenchio)
adding the patch to printf (Gernot Tenchio)
.text
.globl strrchr
.type strrchr,@function
strrchr:
movl 0x4(%esp), %edx
movb 0x8(%esp), %cl
xorl %eax, %eax
.Lloop:
cmpb %cl, (%edx)
jnz .Ltest0
movl %edx, %eax
.Ltest0:
cmpb $0,(%edx)
jz .Lret
incl %edx
jmp .Lloop
.Lret:
ret
LinuxTV legacy CVS <linuxtv.org/cvs>