Warning: That file was not part of the compilation database. It may have many parsing errors.

1#define TLS_LE(x) \
2 ({ int *__l; \
3 asm ("mov %%fs:0,%0\n\t" \
4 "lea " #x "@tpoff(%0), %0" \
5 : "=r" (__l)); \
6 __l; })
7
8#define TLS_IE(x) \
9 ({ int *__l; \
10 asm ("mov %%fs:0,%0\n\t" \
11 "add " #x "@gottpoff(%%rip),%0" \
12 : "=r" (__l)); \
13 __l; })
14
15#define TLS_LD(x) \
16 ({ int *__l, __c, __d; \
17 asm ("leaq " #x "@tlsld(%%rip),%%rdi\n\t" \
18 "call __tls_get_addr@plt\n\t" \
19 "leaq " #x "@dtpoff(%%rax), %%rax" \
20 : "=a" (__l), "=&c" (__c), "=&d" (__d) \
21 : : "rdi", "rsi", "r8", "r9", "r10", "r11"); \
22 __l; })
23
24#ifdef __ILP32__
25# define TLS_GD_PREFIX
26#else
27# define TLS_GD_PREFIX ".byte 0x66\n\t"
28#endif
29
30#define TLS_GD(x) \
31 ({ int *__l, __c, __d; \
32 asm (TLS_GD_PREFIX \
33 "leaq " #x "@tlsgd(%%rip),%%rdi\n\t" \
34 ".word 0x6666\n\t" \
35 "rex64\n\t" \
36 "call __tls_get_addr@plt" \
37 : "=a" (__l), "=&c" (__c), "=&d" (__d) \
38 : : "rdi", "rsi", "r8", "r9", "r10", "r11"); \
39 __l; })
40

Warning: That file was not part of the compilation database. It may have many parsing errors.