lang-bootstrap/05/musl-final/arch/x86_64/pthread_arch.h

7 lines
132 B
C
Raw Normal View History

2025-04-05 10:55:40 +01:00
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ ("movq %%fs:0,%0" : "=r" (self) );
return self;
}