define FP_FAST_FMA* when fma* can be inlined
[musl] / arch / powerpc / pthread_arch.h
index 7c5c4fa..ae0f28d 100644 (file)
@@ -1,16 +1,12 @@
 static inline struct pthread *__pthread_self()
 {
-#ifdef __clang__
-       char *tp;
-       __asm__ __volatile__ ("mr %0, 2" : "=r"(tp) : : );
-#else
        register char *tp __asm__("r2");
-       __asm__ __volatile__ ("" : "=r" (tp) );
-#endif
+       __asm__ ("" : "=r" (tp) );
        return (pthread_t)(tp - 0x7000 - sizeof(struct pthread));
 }
                         
 #define TLS_ABOVE_TP
+#define GAP_ABOVE_TP 0
 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) + 0x7000)
 
 #define DTP_OFFSET 0x8000