Last active
February 1, 2016 21:15
-
-
Save clausecker/17de581de8c8cafabe94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .text | |
| .globl is_eof_block | |
| .type is_eof_block,@function | |
| .align 16 | |
| is_eof_block: | |
| mov $7,%eax | |
| movups 0x00(%rdi),%xmm0 | |
| movups 0x10(%rdi),%xmm1 | |
| movups 0x20(%rdi),%xmm2 | |
| movups 0x30(%rdi),%xmm3 | |
| .Lbegin: | |
| add $0x40,%rdi | |
| por 0x00(%rdi),%xmm0 | |
| por 0x10(%rdi),%xmm1 | |
| por 0x20(%rdi),%xmm2 | |
| por 0x30(%rdi),%xmm3 | |
| dec %eax | |
| jnz .Lbegin | |
| por %xmm1,%xmm0 | |
| por %xmm3,%xmm2 | |
| por %xmm2,%xmm0 | |
| ptest %xmm0,%xmm0 | |
| setz %al | |
| ret | |
| .size is_eof_block,.-is_eof_block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment