fix improper function prototypes (empty parentheses)

This commit is contained in:
Martin Kroeker 2023-09-30 12:46:34 +02:00 committed by GitHub
parent 189627709e
commit ccbb91e4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 15 deletions

View File

@ -141,14 +141,14 @@ static __inline int num_cpu_avail(int level) {
#ifdef USE_OPENMP #ifdef USE_OPENMP
int openmp_nthreads; int openmp_nthreads;
openmp_nthreads=omp_get_max_threads(); openmp_nthreads=omp_get_max_threads(void);
#endif #endif
#ifndef USE_OPENMP #ifndef USE_OPENMP
if (blas_cpu_number == 1 if (blas_cpu_number == 1
#endif #endif
#ifdef USE_OPENMP #ifdef USE_OPENMP
if (openmp_nthreads == 1 || omp_in_parallel() if (openmp_nthreads == 1 || omp_in_parallel(void)
#endif #endif
) return 1; ) return 1;
@ -192,27 +192,27 @@ int exec_blas(BLASLONG num_cpu, blas_param_t *param, void *buffer);
int blas_level1_thread(int mode, BLASLONG m, BLASLONG n, BLASLONG k, void *alpha, int blas_level1_thread(int mode, BLASLONG m, BLASLONG n, BLASLONG k, void *alpha,
void *a, BLASLONG lda, void *a, BLASLONG lda,
void *b, BLASLONG ldb, void *b, BLASLONG ldb,
void *c, BLASLONG ldc, int (*function)(), int threads); void *c, BLASLONG ldc, int (*function)(void), int threads);
int gemm_thread_m (int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(), void *, void *, BLASLONG); int gemm_thread_m (int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(blas_arg_t*, BLASLONG*, BLASLONG*,FLOAT *, FLOAT *, BLASLONG ), void *, void *, BLASLONG);
int gemm_thread_n (int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(), void *, void *, BLASLONG); int gemm_thread_n (int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(blas_arg_t*, BLASLONG*, BLASLONG*,FLOAT*, FLOAT*, BLASLONG), void *, void *, BLASLONG);
int gemm_thread_mn(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(), void *, void *, BLASLONG); int gemm_thread_mn(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(blas_arg_t*, BLASLONG*, BLASLONG*,FLOAT *, FLOAT *, BLASLONG), void *, void *, BLASLONG);
int gemm_thread_variable(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(), void *, void *, BLASLONG, BLASLONG); int gemm_thread_variable(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(blas_arg_t*, BLASLONG*, BLASLONG*,FLOAT *, FLOAT *, BLASLONG), void *, void *, BLASLONG, BLASLONG);
int trsm_thread(int mode, BLASLONG m, BLASLONG n, int trsm_thread(int mode, BLASLONG m, BLASLONG n,
double alpha_r, double alpha_i, double alpha_r, double alpha_i,
void *a, BLASLONG lda, void *a, BLASLONG lda,
void *c, BLASLONG ldc, int (*function)(), void *buffer); void *c, BLASLONG ldc, int (*function)(void), void *buffer);
int syrk_thread(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(), void *, void *, BLASLONG); int syrk_thread(int mode, blas_arg_t *, BLASLONG *, BLASLONG *, int (*function)(blas_arg_t*, BLASLONG*, BLASLONG*, FLOAT *, FLOAT *, BLASLONG), void*, void*, BLASLONG);
int getrf_thread(int mode, BLASLONG m, BLASLONG n, BLASLONG k, int getrf_thread(int mode, BLASLONG m, BLASLONG n, BLASLONG k,
void *offsetA, BLASLONG lda, void *offsetA, BLASLONG lda,
void *offsetB, BLASLONG jb, void *offsetB, BLASLONG jb,
void *ipiv, BLASLONG offset, int (*function)(), void *buffer); void *ipiv, BLASLONG offset, int (*function)(void), void *buffer);
#endif /* ENDIF ASSEMBLER */ #endif /* ENDIF ASSEMBLER */

View File

@ -194,7 +194,7 @@ static C_INLINE void xgetbv(int op, int * eax, int * edx){
} }
#endif #endif
int support_avx(){ int support_avx(void){
#ifndef NO_AVX #ifndef NO_AVX
int eax, ebx, ecx, edx; int eax, ebx, ecx, edx;
int ret=0; int ret=0;
@ -212,7 +212,7 @@ int support_avx(){
#endif #endif
} }
int support_avx2(){ int support_avx2(void){
#ifndef NO_AVX2 #ifndef NO_AVX2
int eax, ebx, ecx=0, edx; int eax, ebx, ecx=0, edx;
int ret=0; int ret=0;
@ -228,7 +228,7 @@ int support_avx2(){
#endif #endif
} }
int support_avx512(){ int support_avx512(void){
#if !defined(NO_AVX) && !defined(NO_AVX512) #if !defined(NO_AVX) && !defined(NO_AVX512)
int eax, ebx, ecx, edx; int eax, ebx, ecx, edx;
int ret=0; int ret=0;
@ -250,7 +250,7 @@ int support_avx512(){
#endif #endif
} }
int support_avx512_bf16(){ int support_avx512_bf16(void){
#if !defined(NO_AVX) && !defined(NO_AVX512) #if !defined(NO_AVX) && !defined(NO_AVX512)
int eax, ebx, ecx, edx; int eax, ebx, ecx, edx;
int ret=0; int ret=0;
@ -271,7 +271,7 @@ int support_avx512_bf16(){
#define BIT_AMX_BF16 0x00400000 #define BIT_AMX_BF16 0x00400000
#define BIT_AMX_ENBD 0x00060000 #define BIT_AMX_ENBD 0x00060000
int support_amx_bf16() { int support_amx_bf16(void) {
#if !defined(NO_AVX) && !defined(NO_AVX512) #if !defined(NO_AVX) && !defined(NO_AVX512)
int eax, ebx, ecx, edx; int eax, ebx, ecx, edx;
int ret=0; int ret=0;