clarify the purpose of this project
[nyanglibc.git] / time / dysize.shared.s
blobc3575173218785173797b7f735eac0dc33c96ae1
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 dysize
9 .type dysize, @function
10 dysize:
11 testb $3, %dil
12 movl $365, %eax
13 jne .L1
14 movl %edi, %eax
15 movl $1374389535, %edx
16 movl %edi, %esi
17 imull %edx
18 sarl $31, %esi
19 movl $366, %eax
20 movl %edx, %ecx
21 sarl $5, %ecx
22 subl %esi, %ecx
23 imull $100, %ecx, %ecx
24 cmpl %ecx, %edi
25 jne .L1
26 sarl $7, %edx
27 xorl %eax, %eax
28 subl %esi, %edx
29 imull $400, %edx, %edx
30 cmpl %edx, %edi
31 sete %al
32 addl $365, %eax
33 .L1:
34 rep ret
35 .size dysize, .-dysize