Debian Codegraph @

internal/overlay/musl/arch/loongarch64/pthread_arch.h

raw
1 static inline uintptr_t __get_tp();
2
3 #ifndef __CCGO__
4 static inline uintptr_t __get_tp()
5 {
6 register uintptr_t tp __asm__("tp");
7 __asm__ ("" : "=r" (tp) );
8 return tp;
9 }
10 #endif
11
12 #define TLS_ABOVE_TP
13 #define GAP_ABOVE_TP 0
14 #define DTP_OFFSET 0
15 #define MC_PC __pc