clarify the purpose of this project
[nyanglibc.git] / stdlib / jrand48_r.s
blob11c773eb807ffa0db2f8ba0084a914ac23d9e7ce
1 .text
2 .p2align 4,,15
3 .globl __jrand48_r
4 .hidden __jrand48_r
5 .type __jrand48_r, @function
6 __jrand48_r:
7 pushq %rbp
8 pushq %rbx
9 movq %rdx, %rbp
10 movq %rdi, %rbx
11 subq $8, %rsp
12 call __drand48_iterate
13 testl %eax, %eax
14 js .L3
15 movslq 2(%rbx), %rax
16 movq %rax, 0(%rbp)
17 xorl %eax, %eax
18 .L1:
19 addq $8, %rsp
20 popq %rbx
21 popq %rbp
22 ret
23 .p2align 4,,10
24 .p2align 3
25 .L3:
26 movl $-1, %eax
27 jmp .L1
28 .size __jrand48_r, .-__jrand48_r
29 .weak jrand48_r
30 .set jrand48_r,__jrand48_r
31 .hidden __drand48_iterate