Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example::divu_gen:
- lzcnt ecx, esi
- mov eax, 32
- mov edx, -1
- mov r9, rdi
- sub eax, ecx
- blsr ecx, esi
- mov ecx, -1
- lea r8, [rax - 1]
- je .LBB0_2
- mov edx, 2147483648
- mov ecx, esi
- shlx rax, rdx, rax
- xor edx, edx
- div rcx
- mov ecx, 1
- shlx r10, rcx, r8
- xor edx, edx
- xor ecx, ecx
- mov edi, eax
- imul edi, esi
- add edi, esi
- cmp rdi, r10
- setbe cl
- cmova edx, eax
- add ecx, eax
- .LBB0_2:
- mov dword ptr [r9], ecx
- mov dword ptr [r9 + 4], edx
- mov rax, r9
- mov dword ptr [r9 + 8], r8d
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement