clarify the purpose of this project
[nyanglibc.git] / locale / uselocale.shared.s
blob8f80dc534a18139fdb9ccff59f8b976e95e77c00
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 __GI___uselocale
9 .hidden __GI___uselocale
10 .type __GI___uselocale, @function
11 __GI___uselocale:
12 movq __libc_tsd_LOCALE@gottpoff(%rip), %rcx
13 testq %rdi, %rdi
14 leaq _nl_global_locale(%rip), %rdx
15 movq %fs:(%rcx), %rax
16 je .L2
17 cmpq $-1, %rdi
18 cmove %rdx, %rdi
19 movq %rdi, %fs:(%rcx)
20 movq 104(%rdi), %rsi
21 movq __libc_tsd_CTYPE_B@gottpoff(%rip), %rcx
22 movq %rsi, %fs:(%rcx)
23 movq 112(%rdi), %rsi
24 movq __libc_tsd_CTYPE_TOLOWER@gottpoff(%rip), %rcx
25 movq %rsi, %fs:(%rcx)
26 movq 120(%rdi), %rsi
27 movq __libc_tsd_CTYPE_TOUPPER@gottpoff(%rip), %rcx
28 movq %rsi, %fs:(%rcx)
29 .L2:
30 cmpq %rdx, %rax
31 movq $-1, %rdx
32 cmove %rdx, %rax
33 ret
34 .size __GI___uselocale, .-__GI___uselocale
35 .globl __uselocale
36 .set __uselocale,__GI___uselocale
37 .weak uselocale
38 .set uselocale,__uselocale
39 .hidden _nl_global_locale