Skip to content

Instantly share code, notes, and snippets.

@fsaintjacques
Created January 5, 2016 15:11
Show Gist options
  • Save fsaintjacques/c272c92384797e0e80ec to your computer and use it in GitHub Desktop.
Save fsaintjacques/c272c92384797e0e80ec to your computer and use it in GitHub Desktop.
00000000000001d0 <bitset_container_compute_cardinality>:
1d0: 48 8b 4f 08 mov 0x8(%rdi),%rcx
1d4: 31 d2 xor %edx,%edx
1d6: 31 c0 xor %eax,%eax
1d8: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
1df: 00
1e0: f3 4c 0f b8 04 11 popcnt (%rcx,%rdx,1),%r8
1e6: f3 4c 0f b8 4c 11 08 popcnt 0x8(%rcx,%rdx,1),%r9
1ed: f3 48 0f b8 7c 11 10 popcnt 0x10(%rcx,%rdx,1),%rdi
1f4: f3 48 0f b8 74 11 18 popcnt 0x18(%rcx,%rdx,1),%rsi
1fb: 48 83 c2 20 add $0x20,%rdx
1ff: 45 01 c8 add %r9d,%r8d
202: 44 01 c0 add %r8d,%eax
205: 01 f8 add %edi,%eax
207: 01 f0 add %esi,%eax
209: 48 81 fa 00 20 00 00 cmp $0x2000,%rdx
210: 75 ce jne 1e0 <bitset_container_compute_cardinality+0x10>
212: f3 c3 repz retq
214: 66 66 66 2e 0f 1f 84 data32 data32 nopw %cs:0x0(%rax,%rax,1)
21b: 00 00 00 00 00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment