Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .global dot_product
- dot_product:
- pushl %ebp
- movl %esp, %ebp
- pushl %edi
- pushl %esi
- movl 8(%ebp), %eax
- movl 12(%ebp), %edi
- movl 16(%ebp), %esi
- movups (%esi), %xmm0
- loopa:
- movups (%edi), xmm1
- movups (%esi), xmm2
- mulps xmm1, xmm2
- addps xmm2, xmm0
- incl %edi
- incl %esi
- subl $1, %eax
- cmpl $0, %eax
- jne loopa
- subl $8, %esp
- movss %xmm0, (%esp)
- fld (%esp)
- addl $8, %esp
- popl %esi
- -- INSERT -- 32,1 Top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement