Modernize obsolete inline order
This commit is contained in:
		
							parent
							
								
									562ef5fdca
								
							
						
					
					
						commit
						b5ba95a6c0
					
				
							
								
								
									
										2
									
								
								common.h
								
								
								
								
							
							
						
						
									
										2
									
								
								common.h
								
								
								
								
							|  | @ -525,7 +525,7 @@ static inline unsigned long long rpcc(void){ | ||||||
| #endif // !RPCC_DEFINED
 | #endif // !RPCC_DEFINED
 | ||||||
| 
 | 
 | ||||||
| #if !defined(BLAS_LOCK_DEFINED) && defined(__GNUC__) | #if !defined(BLAS_LOCK_DEFINED) && defined(__GNUC__) | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
|   do { |   do { | ||||||
|     while (*address) {YIELDING;}; |     while (*address) {YIELDING;}; | ||||||
|  |  | ||||||
|  | @ -45,7 +45,7 @@ | ||||||
| #define WMB asm("wmb") | #define WMB asm("wmb") | ||||||
| #define RMB asm("mb") | #define RMB asm("mb") | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(unsigned long *address){ | static __inline void blas_lock(unsigned long *address){ | ||||||
| #ifndef __DECC | #ifndef __DECC | ||||||
|   unsigned long tmp1, tmp2; |   unsigned long tmp1, tmp2; | ||||||
|   asm volatile( |   asm volatile( | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
| 
 | 
 | ||||||
| #if defined(ARMV6) || defined(ARMV7) || defined(ARMV8) | #if defined(ARMV6) || defined(ARMV7) || defined(ARMV8) | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
|   int register ret; |   int register ret; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -55,7 +55,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
| #ifndef ASSEMBLER | #ifndef ASSEMBLER | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
|   BLASULONG ret; |   BLASULONG ret; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -91,7 +91,7 @@ | ||||||
| 
 | 
 | ||||||
| void *qalloc(int flags, size_t bytes); | void *qalloc(int flags, size_t bytes); | ||||||
| 
 | 
 | ||||||
| static void INLINE blas_lock(volatile unsigned long *address){ | static INLINE void blas_lock(volatile unsigned long *address){ | ||||||
| 
 | 
 | ||||||
|   long int ret, val = 1; |   long int ret, val = 1; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -45,7 +45,7 @@ | ||||||
| 
 | 
 | ||||||
| #ifndef ASSEMBLER | #ifndef ASSEMBLER | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile unsigned long *address){ | static __inline void blas_lock(volatile unsigned long *address){ | ||||||
| 
 | 
 | ||||||
|   long int ret = 1; |   long int ret = 1; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -54,7 +54,7 @@ | ||||||
| #define	__volatile__ | #define	__volatile__ | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
|   int ret; |   int ret; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -70,7 +70,7 @@ | ||||||
| #define RMB | #define RMB | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
| 	 | 	 | ||||||
| #ifndef C_MSVC | #ifndef C_MSVC | ||||||
|  |  | ||||||
|  | @ -45,7 +45,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
| #ifndef ASSEMBLER | #ifndef ASSEMBLER | ||||||
| 
 | 
 | ||||||
|   /*
 |   /*
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
|   BLASULONG ret; |   BLASULONG ret; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -36,7 +36,7 @@ | ||||||
| /* or implied, of The University of Texas at Austin.                 */ | /* or implied, of The University of Texas at Austin.                 */ | ||||||
| /*********************************************************************/ | /*********************************************************************/ | ||||||
| 
 | 
 | ||||||
| static void __inline blas_lock(volatile BLASULONG *address){ | static __inline void blas_lock(volatile BLASULONG *address){ | ||||||
| 
 | 
 | ||||||
| #ifdef __GNUC__ | #ifdef __GNUC__ | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue