Skip to content

Instantly share code, notes, and snippets.

@jfpoole
Created May 20, 2013 03:11
Show Gist options
  • Save jfpoole/5610229 to your computer and use it in GitHub Desktop.
Save jfpoole/5610229 to your computer and use it in GitHub Desktop.
byteswap (clang -O2)
__Z8byteswapj: ## @_Z8byteswapj
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp7:
.cfi_def_cfa_offset 16
Ltmp8:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp9:
.cfi_def_cfa_register %rbp
bswapl %edi
movl %edi, %eax
popq %rbp
ret
.cfi_endproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment