clarify the purpose of this project
[nyanglibc.git] / stdlib / lcong48_r.s
bloba357001318d0869a7518e925bb0bee3ec7d29e1e
1 .text
2 .p2align 4,,15
3 .globl __lcong48_r
4 .hidden __lcong48_r
5 .type __lcong48_r, @function
6 __lcong48_r:
7 movl (%rdi), %eax
8 movl %eax, (%rsi)
9 movzwl 4(%rdi), %eax
10 movw %ax, 4(%rsi)
11 movzwl 10(%rdi), %eax
12 movzwl 6(%rdi), %edx
13 salq $32, %rax
14 orq %rdx, %rax
15 movzwl 8(%rdi), %edx
16 sall $16, %edx
17 orq %rdx, %rax
18 movq %rax, 16(%rsi)
19 movzwl 12(%rdi), %eax
20 movw %ax, 12(%rsi)
21 movl $1, %eax
22 movw %ax, 14(%rsi)
23 xorl %eax, %eax
24 ret
25 .size __lcong48_r, .-__lcong48_r
26 .weak lcong48_r
27 .set lcong48_r,__lcong48_r