diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-22 22:56:06 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-22 22:56:06 -0400 |
commit | d5bde7babb88f0279f3ad592d585f3f954090696 (patch) | |
tree | 739fe4834c90fe720283f45e8021837ffd33396a /arch/arm | |
parent | 4b153ac42428447a148e6da543ebe6df017078db (diff) | |
download | musl-d5bde7babb88f0279f3ad592d585f3f954090696.tar.gz musl-d5bde7babb88f0279f3ad592d585f3f954090696.tar.xz musl-d5bde7babb88f0279f3ad592d585f3f954090696.zip |
"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.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/pthread_arch.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/pthread_arch.h b/arch/arm/pthread_arch.h index c6b97368..e607c5db 100644 --- a/arch/arm/pthread_arch.h +++ b/arch/arm/pthread_arch.h @@ -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 |