Skip to content

Commit

Permalink
Merge pull request #4202 from TiborGY/inlines_pt2
Browse files Browse the repository at this point in the history
Remove some unused inline macro definitions
  • Loading branch information
martin-frbg authored Oct 30, 2024
2 parents f66e6d3 + 815cb24 commit 24b5cca
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions common_arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions common_arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions common_e2k.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions common_loongarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
2 changes: 0 additions & 2 deletions common_mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions common_mips64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
4 changes: 1 addition & 3 deletions common_power.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
#define RMB __asm__ __volatile__ ("sync")
#endif

#define INLINE inline

#ifdef PPC440
#define STDERR stdout
#define QNONCACHE 0x1
Expand All @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions common_riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 0 additions & 3 deletions common_zarch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24b5cca

Please sign in to comment.