2 #include "pthread_impl.h"
5 void *__tls_get_new(size_t *) ATTR_LIBC_VISIBILITY;
7 void *__tls_get_addr(size_t *v)
9 pthread_t self = __pthread_self();
11 if (v[0]<=(size_t)self->dtv[0])
12 return (char *)self->dtv[v[0]]+v[1];
13 return __tls_get_new(v);
15 return (char *)self->dtv[1]+v[1];