clarify the purpose of this project
[nyanglibc.git] / stdlib / srand48_r.s
blob8dd43145d68a84b2c9c8bbf6942f4393c3a36cd6
1 .text
2 .p2align 4,,15
3 .globl __srand48_r
4 .hidden __srand48_r
5 .type __srand48_r, @function
6 __srand48_r:
7 movl %edi, %edi
8 movl $5, 20(%rsi)
9 movq %rdi, %rax
10 movw %di, 2(%rsi)
11 sarq $16, %rax
12 movw %ax, 4(%rsi)
13 movl $13070, %eax
14 movw %ax, (%rsi)
15 movabsq $-2383276746959945717, %rax
16 movq %rax, 12(%rsi)
17 xorl %eax, %eax
18 ret
19 .size __srand48_r, .-__srand48_r
20 .weak srand48_r
21 .set srand48_r,__srand48_r