Created
July 27, 2016 05:20
-
-
Save jimblandy/f3a60f2ea1e5cc20ca4fa8965e50d186 to your computer and use it in GitHub Desktop.
fn t(n: usize) -> usize { (0..n+1).fold(0, |s, i| s+i*i) }
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
5830: 48 8d 47 ff lea -0x1(%rdi),%rax | |
5834: 48 f7 e7 mul %rdi | |
5837: 48 89 c1 mov %rax,%rcx | |
583a: 48 89 d6 mov %rdx,%rsi | |
583d: 48 8d 5f fe lea -0x2(%rdi),%rbx | |
5841: 48 f7 e3 mul %rbx | |
5844: 0f af de imul %esi,%ebx | |
5847: 48 0f a4 ce 3f shld $0x3f,%rcx,%rsi | |
584c: 48 8d 0c 76 lea (%rsi,%rsi,2),%rcx | |
5850: 01 da add %ebx,%edx | |
5852: 48 0f a4 c2 3f shld $0x3f,%rax,%rdx | |
5857: 48 b8 56 55 55 55 55 movabs $0x5555555555555556,%rax | |
585e: 55 55 55 | |
5861: 48 0f af c2 imul %rdx,%rax | |
5865: 48 01 f9 add %rdi,%rcx | |
5868: 48 01 c1 add %rax,%rcx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment