lang-bootstrap/05/musl-final/arch/x86_64/pthread_arch.h
2025-04-05 10:55:40 +01:00

6 lines
132 B
C

static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ ("movq %%fs:0,%0" : "=r" (self) );
return self;
}