summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/ppc
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-10-11 17:35:42 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-10-11 17:35:42 +0000
commite49971517ad82330f8dc23bab90a9f3ee3966f35 (patch)
tree8a91cd97b4bbf2f2d351dc15a4e31a3d143100fb /compiler-rt/lib/builtins/ppc
parent8b3353f20f0563d2bab4053f0663820d61ed3daa (diff)
downloadbcm5719-llvm-e49971517ad82330f8dc23bab90a9f3ee3966f35.tar.gz
bcm5719-llvm-e49971517ad82330f8dc23bab90a9f3ee3966f35.zip
builtins: define and use ALWAYS_INLINE
Abstract out the always inline spelling similar to ASAN. NFC. llvm-svn: 249986
Diffstat (limited to 'compiler-rt/lib/builtins/ppc')
-rw-r--r--compiler-rt/lib/builtins/ppc/DD.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/lib/builtins/ppc/DD.h b/compiler-rt/lib/builtins/ppc/DD.h
index b5d6a1248c5..679c7f186b2 100644
--- a/compiler-rt/lib/builtins/ppc/DD.h
+++ b/compiler-rt/lib/builtins/ppc/DD.h
@@ -19,20 +19,19 @@ typedef union {
#define LOWORDER(xy,xHi,xLo,yHi,yLo) \
(((((xHi)*(yHi) - (xy)) + (xHi)*(yLo)) + (xLo)*(yHi)) + (xLo)*(yLo))
-static __inline double __attribute__((always_inline)) local_fabs(double x) {
+static __inline ALWAYS_INLINE double local_fabs(double x) {
doublebits result = {.d = x};
result.x &= UINT64_C(0x7fffffffffffffff);
return result.d;
}
-static __inline double __attribute__((always_inline)) high26bits(double x) {
+static __inline ALWAYS_INLINE double high26bits(double x) {
doublebits result = {.d = x};
result.x &= UINT64_C(0xfffffffff8000000);
return result.d;
}
-static __inline int __attribute__((always_inline))
-different_sign(double x, double y) {
+static __inline ALWAYS_INLINE int different_sign(double x, double y) {
doublebits xsignbit = {.d = x}, ysignbit = {.d = y};
int result = (int)(xsignbit.x >> 63) ^ (int)(ysignbit.x >> 63);
return result;
OpenPOWER on IntegriCloud