> From: Richard A. Smith [mailto:[EMAIL PROTECTED]]
>
> Well there's the answer. The pointer version has an extra addl
> instruction. Does this hold true for an array of floats as well?
Yes.
_sum_array_ar:
movl 4(%esp),%edx
fldz
movl 8(%esp),%eax
decl %eax
cmpl $-1,%eax
je L17
.p2align 4,,7
L19:
fadds (%edx,%eax,4)
subl $1,%eax
jnc L19
L17:
ret
_sum_array_pr:
fldz
movl 8(%esp),%eax
leal 0(,%eax,4),%edx
addl 4(%esp),%edx
subl $1,%eax
jc L23
.p2align 4,,7
L25:
addl $-4,%edx
fadds (%edx)
subl $1,%eax
jnc L25
L23:
ret
-- Mat.
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )