Skip to content

Instantly share code, notes, and snippets.

@jimblandy
Created July 27, 2016 05:18
Show Gist options
  • Select an option

  • Save jimblandy/a94d117a29d4e5031c5ae7084758f932 to your computer and use it in GitHub Desktop.

Select an option

Save jimblandy/a94d117a29d4e5031c5ae7084758f932 to your computer and use it in GitHub Desktop.
Machine code generated for triangle function
5826: xor %ecx,%ecx
5828: cmp $0xffffffffffffffff,%rsi
582c: je 5840
582e: lea -0x1(%rsi),%rax
5832: mul %rsi
5835: mov %rdx,%rcx
5838: shld $0x3f,%rax,%rcx
583d: add %rsi,%rcx
5840: ... use %rcx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment