Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- av_bswap32(x);
- GCC 4.7+
- movl %edi, %eax
- bswap %eax
- ret
- ICC 13
- movl %edi, %edx #21.12
- shrl $8, %edx #21.12
- movl %edi, %eax #21.12
- bswap %eax #21.12
- andl $65280, %edx #21.12
- shrl $24, %edi #21.12
- andl $-65536, %eax #21.12
- orl %edi, %edx #21.12
- orl %edx, %eax #21.12
- ret
- av_bswap64(x);
- GCC 4.5+
- movq %rdi, %rax
- bswap %rax
- ret
- ICC 13
- movl %edi, %edx #28.33
- shrq $32, %rdi #28.60
- movl %edx, %ecx #21.12
- shrl $8, %ecx #21.12
- movl %edx, %eax #21.12
- movl %edi, %esi #21.12
- andl $65280, %ecx #21.12
- bswap %eax #21.12
- movl %edi, %r8d #21.12
- shrl $24, %edx #21.12
- andl $-65536, %eax #21.12
- shrl $8, %esi #21.12
- orl %edx, %ecx #21.12
- bswap %r8d #21.12
- andl $65280, %esi #21.12
- shrl $24, %edi #21.12
- orl %ecx, %eax #21.12
- andl $-65536, %r8d #21.12
- orl %edi, %esi #21.12
- orl %esi, %r8d #21.12
- shlq $32, %rax #28.39
- orq %r8, %rax #28.44
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement