summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-01-18 01:54:37 +1100
committer Vas Crabb <vas@vastheman.com>2021-01-18 01:54:37 +1100
commit255d4e778712227becba3982d5ba062543d1519c (patch)
treea14c8830f6f211caa94e490719e91c2a8bd78d1e
parent6e1bbe8be89349038995df2aaa4f11019439e39e (diff)
osd: Make preprocessor usage a bit more consistent in inline utilties for PPC/ARM.
-rw-r--r--src/osd/eigccarm.h4
-rw-r--r--src/osd/eigccppc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/eigccarm.h b/src/osd/eigccarm.h
index c6e25d7a95e..87be554fc7c 100644
--- a/src/osd/eigccarm.h
+++ b/src/osd/eigccarm.h
@@ -204,7 +204,7 @@ _recip_approx(float value)
multiply and return the full 128 bit result
-------------------------------------------------*/
-#ifdef __aarch64__
+#if defined(__aarch64__)
#define mul_64x64 _mul_64x64
inline int64_t ATTR_FORCE_INLINE
_mul_64x64(int64_t a, int64_t b, int64_t &hi)
@@ -221,7 +221,7 @@ _mul_64x64(int64_t a, int64_t b, int64_t &hi)
bit multiply and return the full 128 bit result
-------------------------------------------------*/
-#ifdef __aarch64__
+#if defined(__aarch64__)
#define mulu_64x64 _mulu_64x64
inline uint64_t ATTR_FORCE_INLINE
_mulu_64x64(uint64_t a, uint64_t b, uint64_t &hi)
diff --git a/src/osd/eigccppc.h b/src/osd/eigccppc.h
index 824657097b0..3a1b2093d4e 100644
--- a/src/osd/eigccppc.h
+++ b/src/osd/eigccppc.h
@@ -204,7 +204,7 @@ _recip_approx(float value)
multiply and return the full 128 bit result
-------------------------------------------------*/
-#ifdef __ppc64__
+#if defined(__ppc64__)
#define mul_64x64 _mul_64x64
inline int64_t ATTR_FORCE_INLINE
_mul_64x64(int64_t a, int64_t b, int64_t &hi)
@@ -221,7 +221,7 @@ _mul_64x64(int64_t a, int64_t b, int64_t &hi)
bit multiply and return the full 128 bit result
-------------------------------------------------*/
-#ifdef __ppc64__
+#if defined(__ppc64__)
#define mulu_64x64 _mulu_64x64
inline uint64_t ATTR_FORCE_INLINE
_mulu_64x64(uint64_t a, uint64_t b, uint64_t &hi)