projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b153ac
)
"optimize" arm __pthread_self
author
Rich Felker
<dalias@aerifal.cx>
Fri, 23 Sep 2011 02:56:06 +0000
(22:56 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 23 Sep 2011 02:56:06 +0000
(22:56 -0400)
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.
arch/arm/pthread_arch.h
patch
|
blob
|
history
diff --git
a/arch/arm/pthread_arch.h
b/arch/arm/pthread_arch.h
index c6b973681fc14cef800395047df18171efd46327..e607c5dbd0e20e94fc767984eb4b4aa3a3ad0280 100644
(file)
--- 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