@@ -209,7 +209,8 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
209
209
/* REAL / Double */
210
210
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , double ,
211
211
double * , BLASLONG , double * , BLASLONG ,
212
- double * , BLASLONG , void * ) = func ;
212
+ double * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , double , double * , BLASLONG ,
213
+ double * , BLASLONG , double * , BLASLONG , void * )) func ;
213
214
214
215
afunc (args -> m , args -> n , args -> k ,
215
216
((double * )args -> alpha )[0 ],
@@ -220,7 +221,10 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
220
221
/* REAL / Single */
221
222
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , float ,
222
223
float * , BLASLONG , float * , BLASLONG ,
223
- float * , BLASLONG , void * ) = func ;
224
+ float * , BLASLONG , void * ) = (void (* )
225
+ (BLASLONG , BLASLONG , BLASLONG , float ,
226
+ float * , BLASLONG , float * , BLASLONG ,
227
+ float * , BLASLONG , void * )) func ;
224
228
225
229
afunc (args -> m , args -> n , args -> k ,
226
230
((float * )args -> alpha )[0 ],
@@ -232,7 +236,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
232
236
/* REAL / BFLOAT16 */
233
237
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , bfloat16 ,
234
238
bfloat16 * , BLASLONG , bfloat16 * , BLASLONG ,
235
- bfloat16 * , BLASLONG , void * ) = func ;
239
+ bfloat16 * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , bfloat16 ,
240
+ bfloat16 * , BLASLONG , bfloat16 * , BLASLONG ,
241
+ bfloat16 * , BLASLONG , void * )) func ;
236
242
237
243
afunc (args -> m , args -> n , args -> k ,
238
244
((bfloat16 * )args -> alpha )[0 ],
@@ -243,7 +249,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
243
249
/* REAL / BLAS_STOBF16 */
244
250
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , float ,
245
251
float * , BLASLONG , bfloat16 * , BLASLONG ,
246
- float * , BLASLONG , void * ) = func ;
252
+ float * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , float ,
253
+ float * , BLASLONG , bfloat16 * , BLASLONG ,
254
+ float * , BLASLONG , void * )) func ;
247
255
248
256
afunc (args -> m , args -> n , args -> k ,
249
257
((float * )args -> alpha )[0 ],
@@ -254,7 +262,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
254
262
/* REAL / BLAS_DTOBF16 */
255
263
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , double ,
256
264
double * , BLASLONG , bfloat16 * , BLASLONG ,
257
- double * , BLASLONG , void * ) = func ;
265
+ double * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , double ,
266
+ double * , BLASLONG , bfloat16 * , BLASLONG ,
267
+ double * , BLASLONG , void * )) func ;
258
268
259
269
afunc (args -> m , args -> n , args -> k ,
260
270
((double * )args -> alpha )[0 ],
@@ -271,7 +281,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
271
281
/* COMPLEX / Extended Double */
272
282
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , xdouble , xdouble ,
273
283
xdouble * , BLASLONG , xdouble * , BLASLONG ,
274
- xdouble * , BLASLONG , void * ) = func ;
284
+ xdouble * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , xdouble , xdouble ,
285
+ xdouble * , BLASLONG , xdouble * , BLASLONG ,
286
+ xdouble * , BLASLONG , void * )) func ;
275
287
276
288
afunc (args -> m , args -> n , args -> k ,
277
289
((xdouble * )args -> alpha )[0 ],
@@ -285,7 +297,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
285
297
/* COMPLEX / Double */
286
298
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , double , double ,
287
299
double * , BLASLONG , double * , BLASLONG ,
288
- double * , BLASLONG , void * ) = func ;
300
+ double * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , double , double ,
301
+ double * , BLASLONG , double * , BLASLONG ,
302
+ double * , BLASLONG , void * )) func ;
289
303
290
304
afunc (args -> m , args -> n , args -> k ,
291
305
((double * )args -> alpha )[0 ],
@@ -297,7 +311,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
297
311
/* COMPLEX / Single */
298
312
void (* afunc )(BLASLONG , BLASLONG , BLASLONG , float , float ,
299
313
float * , BLASLONG , float * , BLASLONG ,
300
- float * , BLASLONG , void * ) = func ;
314
+ float * , BLASLONG , void * ) = (void (* )(BLASLONG , BLASLONG , BLASLONG , float , float ,
315
+ float * , BLASLONG , float * , BLASLONG ,
316
+ float * , BLASLONG , void * )) func ;
301
317
302
318
afunc (args -> m , args -> n , args -> k ,
303
319
((float * )args -> alpha )[0 ],
@@ -425,7 +441,7 @@ blas_queue_t *tscq;
425
441
#endif
426
442
427
443
if (queue ) {
428
- int (* routine )(blas_arg_t * , void * , void * , void * , void * , BLASLONG ) = queue -> routine ;
444
+ int (* routine )(blas_arg_t * , void * , void * , void * , void * , BLASLONG ) = ( int ( * )( blas_arg_t * , void * , void * , void * , void * , BLASLONG )) queue -> routine ;
429
445
430
446
atomic_store_queue (& thread_status [cpu ].queue , (blas_queue_t * )1 );
431
447
@@ -503,7 +519,7 @@ blas_queue_t *tscq;
503
519
legacy_exec (routine , queue -> mode , queue -> args , sb );
504
520
} else
505
521
if (queue -> mode & BLAS_PTHREAD ) {
506
- void (* pthreadcompat )(void * ) = queue -> routine ;
522
+ void (* pthreadcompat )(void * ) = ( void ( * )( void * )) queue -> routine ;
507
523
(pthreadcompat )(queue -> args );
508
524
} else
509
525
(routine )(queue -> args , queue -> range_m , queue -> range_n , sa , sb , queue -> position );
@@ -871,13 +887,13 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
871
887
fprintf (STDERR , "\n" );
872
888
#endif
873
889
874
- routine = queue -> routine ;
890
+ routine = ( int ( * )( blas_arg_t * , void * , void * , double * , double * , BLASLONG )) queue -> routine ;
875
891
876
892
if (queue -> mode & BLAS_LEGACY ) {
877
893
legacy_exec (routine , queue -> mode , queue -> args , queue -> sb );
878
894
} else
879
895
if (queue -> mode & BLAS_PTHREAD ) {
880
- void (* pthreadcompat )(void * ) = queue -> routine ;
896
+ void (* pthreadcompat )(void * ) = ( void ( * )( void * )) queue -> routine ;
881
897
(pthreadcompat )(queue -> args );
882
898
} else
883
899
(routine )(queue -> args , queue -> range_m , queue -> range_n ,
0 commit comments