Advertisement
Guest User

Untitled

a guest
Jul 18th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. av_bswap32(x);
  2.  
  3. GCC 4.7+
  4. movl %edi, %eax
  5. bswap %eax
  6. ret
  7.  
  8. ICC 13
  9. movl %edi, %edx #21.12
  10. shrl $8, %edx #21.12
  11. movl %edi, %eax #21.12
  12. bswap %eax #21.12
  13. andl $65280, %edx #21.12
  14. shrl $24, %edi #21.12
  15. andl $-65536, %eax #21.12
  16. orl %edi, %edx #21.12
  17. orl %edx, %eax #21.12
  18. ret
  19.  
  20.  
  21. av_bswap64(x);
  22.  
  23. GCC 4.5+
  24. movq %rdi, %rax
  25. bswap %rax
  26. ret
  27.  
  28. ICC 13
  29. movl %edi, %edx #28.33
  30. shrq $32, %rdi #28.60
  31. movl %edx, %ecx #21.12
  32. shrl $8, %ecx #21.12
  33. movl %edx, %eax #21.12
  34. movl %edi, %esi #21.12
  35. andl $65280, %ecx #21.12
  36. bswap %eax #21.12
  37. movl %edi, %r8d #21.12
  38. shrl $24, %edx #21.12
  39. andl $-65536, %eax #21.12
  40. shrl $8, %esi #21.12
  41. orl %edx, %ecx #21.12
  42. bswap %r8d #21.12
  43. andl $65280, %esi #21.12
  44. shrl $24, %edi #21.12
  45. orl %ecx, %eax #21.12
  46. andl $-65536, %r8d #21.12
  47. orl %edi, %esi #21.12
  48. orl %esi, %r8d #21.12
  49. shlq $32, %rax #28.39
  50. orq %r8, %rax #28.44
  51. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement