Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: fusl/arch/aarch64/pthread_arch.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 static inline struct pthread *__pthread_self() 1 static inline struct pthread* __pthread_self() {
2 { 2 char* self;
3 » char *self; 3 __asm__ __volatile__("mrs %0,tpidr_el0" : "=r"(self));
4 » __asm__ __volatile__ ("mrs %0,tpidr_el0" : "=r"(self)); 4 return (void*)(self + 16 - sizeof(struct pthread));
5 » return (void*)(self + 16 - sizeof(struct pthread));
6 } 5 }
7 6
8 #define TLS_ABOVE_TP 7 #define TLS_ABOVE_TP
9 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) - 16) 8 #define TP_ADJ(p) ((char*)(p) + sizeof(struct pthread) - 16)
10 9
11 #define MC_PC pc 10 #define MC_PC pc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698