Last change
on this file since 340 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
400 bytes
|
Rev | Line | |
---|
[337] | 1 | #include <stddef.h>
|
---|
| 2 | #include "pthread_impl.h"
|
---|
| 3 | #include "libc.h"
|
---|
| 4 |
|
---|
| 5 | __attribute__((__visibility__("hidden")))
|
---|
| 6 | void *__tls_get_new(tls_mod_off_t *);
|
---|
| 7 |
|
---|
| 8 | void *__tls_get_addr(tls_mod_off_t *v)
|
---|
| 9 | {
|
---|
| 10 | pthread_t self = __pthread_self();
|
---|
| 11 | if (v[0]<=(size_t)self->dtv[0])
|
---|
| 12 | return (char *)self->dtv[v[0]]+v[1]+DTP_OFFSET;
|
---|
| 13 | return __tls_get_new(v);
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | #ifndef __c2__
|
---|
| 17 | weak_alias(__tls_get_addr, __tls_get_new);
|
---|
| 18 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.