clarify the purpose of this project
[nyanglibc.git] / stdlib / div.shared.s
blobbf4fc797dd854d0180e4382db5445d1f8c24aac4
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl div
9 .type div, @function
10 div:
11 movl %edi, %eax
12 cltd
13 idivl %esi
14 salq $32, %rdx
15 movl %eax, %eax
16 orq %rdx, %rax
17 ret
18 .size div, .-div