mirror of
git://git.musl-libc.org/musl
synced 2025-02-20 21:06:49 +00:00
"optimize" arm __pthread_self
actually this is just to avoid gcc being stupid and refusing to inline the function version, even when the size cost is essentially identical whether it's inlined or not.
This commit is contained in:
parent
4b153ac424
commit
d5bde7babb
@ -1,7 +1,4 @@
|
||||
static inline struct pthread *__pthread_self()
|
||||
{
|
||||
return ((void *(*)(void))0xffff0fe0)();
|
||||
}
|
||||
#define __pthread_self ((pthread_t (*)(void))0xffff0fe0)
|
||||
|
||||
#define CANCEL_REG_SP 16
|
||||
#define CANCEL_REG_IP 18
|
||||
|
Loading…
Reference in New Issue
Block a user