From 815cb24944916ba35092041b79942a4cffce08ea Mon Sep 17 00:00:00 2001 From: TGY Date: Wed, 16 Aug 2023 06:06:00 +0200 Subject: [PATCH] remove unused INLINE macro definitions --- common_arm.h | 2 -- common_arm64.h | 2 -- common_e2k.h | 2 -- common_loongarch64.h | 2 -- common_mips.h | 2 -- common_mips64.h | 2 -- common_power.h | 4 +--- common_riscv64.h | 2 -- common_zarch.h | 3 --- 9 files changed, 1 insertion(+), 20 deletions(-) diff --git a/common_arm.h b/common_arm.h index a3db9953c..80aabc7b0 100644 --- a/common_arm.h +++ b/common_arm.h @@ -47,8 +47,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif -#define INLINE inline - #define RETURN_BY_COMPLEX #ifndef ASSEMBLER diff --git a/common_arm64.h b/common_arm64.h index 876a4aa6d..3e72e2a32 100644 --- a/common_arm64.h +++ b/common_arm64.h @@ -44,8 +44,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define RMB __asm__ __volatile__ ("dmb ishld" : : : "memory") #endif -#define INLINE inline - #if defined( F_INTERFACE_FLANG) || defined(F_INTERFACE_PGI) #define RETURN_BY_STACK #else diff --git a/common_e2k.h b/common_e2k.h index 0739c9473..fe8370c6c 100644 --- a/common_e2k.h +++ b/common_e2k.h @@ -41,8 +41,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB do { __asm__ __volatile__("": : :"memory"); } while (0) #define RMB -#define INLINE __attribute__((__always_inline__)) inline - static inline int blas_quickdivide(blasint x, blasint y) { return x / y; } diff --git a/common_loongarch64.h b/common_loongarch64.h index 2b48450a2..6e96984f6 100644 --- a/common_loongarch64.h +++ b/common_loongarch64.h @@ -75,8 +75,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB __sync_synchronize() #define RMB __sync_synchronize() -#define INLINE inline - #ifndef ASSEMBLER static inline int blas_quickdivide(blasint x, blasint y){ diff --git a/common_mips.h b/common_mips.h index 7dc3ba246..ce328d7e2 100644 --- a/common_mips.h +++ b/common_mips.h @@ -37,8 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB __sync_synchronize() #define RMB __sync_synchronize() -#define INLINE inline - #define RETURN_BY_COMPLEX #ifndef ASSEMBLER diff --git a/common_mips64.h b/common_mips64.h index 006cf33e4..c7eb212df 100644 --- a/common_mips64.h +++ b/common_mips64.h @@ -75,8 +75,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB __sync_synchronize() #define RMB __sync_synchronize() -#define INLINE inline - #ifndef ASSEMBLER static inline unsigned int rpcc(void){ diff --git a/common_power.h b/common_power.h index 6b13f06b1..ded76ad51 100644 --- a/common_power.h +++ b/common_power.h @@ -78,8 +78,6 @@ #define RMB __asm__ __volatile__ ("sync") #endif -#define INLINE inline - #ifdef PPC440 #define STDERR stdout #define QNONCACHE 0x1 @@ -91,7 +89,7 @@ void *qalloc(int flags, size_t bytes); -static INLINE void blas_lock(volatile unsigned long *address){ +static inline void blas_lock(volatile unsigned long *address){ long int ret, val = 1; diff --git a/common_riscv64.h b/common_riscv64.h index eccfc644f..ba638e8be 100644 --- a/common_riscv64.h +++ b/common_riscv64.h @@ -75,8 +75,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB __sync_synchronize() #define RMB __sync_synchronize() -#define INLINE inline - #ifndef ASSEMBLER diff --git a/common_zarch.h b/common_zarch.h index 80609251b..7911f11ae 100644 --- a/common_zarch.h +++ b/common_zarch.h @@ -37,9 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define WMB #define RMB - -#define INLINE inline - #define RETURN_BY_COMPLEX #ifndef ASSEMBLER