9 #ifdef HAS_ATTRIBUTE_WEAK_SUPPORT 12 cblas_xerbla(CBLAS_INT info,
const char *rout,
const char *form, ...)
14 extern int RowMajorStrg;
18 va_start(argptr, form);
22 if (strstr(rout,
"gemm") != 0)
24 if (info == 5 ) info = 4;
25 else if (info == 4 ) info = 5;
26 else if (info == 11) info = 9;
27 else if (info == 9 ) info = 11;
29 else if (strstr(rout,
"symm") != 0 || strstr(rout,
"hemm") != 0)
31 if (info == 5 ) info = 4;
32 else if (info == 4 ) info = 5;
34 else if (strstr(rout,
"trmm") != 0 || strstr(rout,
"trsm") != 0)
36 if (info == 7 ) info = 6;
37 else if (info == 6 ) info = 7;
39 else if (strstr(rout,
"gemv") != 0)
41 if (info == 4) info = 3;
42 else if (info == 3) info = 4;
44 else if (strstr(rout,
"gbmv") != 0)
46 if (info == 4) info = 3;
47 else if (info == 3) info = 4;
48 else if (info == 6) info = 5;
49 else if (info == 5) info = 6;
51 else if (strstr(rout,
"ger") != 0)
53 if (info == 3) info = 2;
54 else if (info == 2) info = 3;
55 else if (info == 8) info = 6;
56 else if (info == 6) info = 8;
58 else if ( (strstr(rout,
"her2") != 0 || strstr(rout,
"hpr2") != 0)
59 && strstr(rout,
"her2k") == 0 )
61 if (info == 8) info = 6;
62 else if (info == 6) info = 8;
66 fprintf(stderr,
"Parameter %" CBLAS_IFMT
" to routine %s was incorrect\n", info, rout);
67 vfprintf(stderr, form, argptr);
70 F77_xerbla(empty, &info);