diff --git a/frame/compat/bla_dot.c b/frame/compat/bla_dot.c index f6de45cc4..4126bb564 100644 --- a/frame/compat/bla_dot.c +++ b/frame/compat/bla_dot.c @@ -39,9 +39,9 @@ // Define BLAS-to-BLIS interfaces. // #undef GENTFUNCDOT -#define GENTFUNCDOT( ftype, chxy, chc, blis_conjx, blasname, blisname ) \ +#define GENTFUNCDOT( ftype, ch, chc, blis_conjx, blasname, blisname ) \ \ -ftype PASTEF772(chxy,blasname,chc) \ +ftype PASTEF772(ch,blasname,chc) \ ( \ const f77_int* n, \ const ftype* x, const f77_int* incx, \ @@ -67,7 +67,7 @@ ftype PASTEF772(chxy,blasname,chc) \ bli_convert_blas_incv( n0, (ftype*)y, *incy, y0, incy0 ); \ \ /* Call BLIS interface. */ \ - PASTEMAC(chxy,blisname) \ + PASTEMAC(ch,blisname) \ ( \ blis_conjx, \ BLIS_NO_CONJUGATE, \ diff --git a/frame/compat/bla_dot.h b/frame/compat/bla_dot.h index c363d720b..bbdab19c3 100644 --- a/frame/compat/bla_dot.h +++ b/frame/compat/bla_dot.h @@ -37,9 +37,9 @@ // Prototype BLAS-to-BLIS interfaces. // #undef GENTPROTDOT -#define GENTPROTDOT( ftype, chxy, chc, blasname ) \ +#define GENTPROTDOT( ftype, ch, chc, blasname ) \ \ -ftype PASTEF772(chxy,blasname,chc) \ +ftype PASTEF772(ch,blasname,chc) \ ( \ const f77_int* n, \ const ftype* x, const f77_int* incx, \ diff --git a/frame/compat/bla_ger.c b/frame/compat/bla_ger.c index d26cfee26..85e17f1ff 100644 --- a/frame/compat/bla_ger.c +++ b/frame/compat/bla_ger.c @@ -39,9 +39,9 @@ // Define BLAS-to-BLIS interfaces. // #undef GENTFUNCDOT -#define GENTFUNCDOT( ftype, chxy, chc, blis_conjy, blasname, blisname ) \ +#define GENTFUNCDOT( ftype, ch, chc, blis_conjy, blasname, blisname ) \ \ -void PASTEF772(chxy,blasname,chc) \ +void PASTEF772(ch,blasname,chc) \ ( \ const f77_int* m, \ const f77_int* n, \ @@ -87,7 +87,7 @@ void PASTEF772(chxy,blasname,chc) \ cs_a = *lda; \ \ /* Call BLIS interface. */ \ - PASTEMAC(chxy,blisname) \ + PASTEMAC(ch,blisname) \ ( \ BLIS_NO_CONJUGATE, \ blis_conjy, \ diff --git a/frame/compat/cblas/f77_sub/f77_amax_sub.c b/frame/compat/cblas/f77_sub/f77_amax_sub.c index a6f55d8c6..df1bc6a4e 100644 --- a/frame/compat/cblas/f77_sub/f77_amax_sub.c +++ b/frame/compat/cblas/f77_sub/f77_amax_sub.c @@ -42,14 +42,18 @@ #undef GENTFUNC #define GENTFUNC( ftype_x, chx, blasname, blisname ) \ \ -void PASTEF773(i,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - f77_int* rval \ - ) \ +void PASTEF773(i,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + f77_int* rval \ + ) \ { \ - *rval = PASTEF772(i,chx,blasname)( n, \ - x, incx ); \ + *rval = PASTEF772(i,chx,blasname) \ + ( \ + n, \ + x, incx \ + ); \ } #ifdef BLIS_ENABLE_CBLAS diff --git a/frame/compat/cblas/f77_sub/f77_amax_sub.h b/frame/compat/cblas/f77_sub/f77_amax_sub.h index 42ee48d97..fab4c8870 100644 --- a/frame/compat/cblas/f77_sub/f77_amax_sub.h +++ b/frame/compat/cblas/f77_sub/f77_amax_sub.h @@ -39,11 +39,12 @@ #undef GENTPROT #define GENTPROT( ftype_x, chx, blasname ) \ \ -void PASTEF773(i,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - f77_int* rval \ - ); +void PASTEF773(i,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + f77_int* rval \ + ); #ifdef BLIS_ENABLE_CBLAS INSERT_GENTPROT_BLAS( amax ) diff --git a/frame/compat/cblas/f77_sub/f77_asum_sub.c b/frame/compat/cblas/f77_sub/f77_asum_sub.c index c8fc069e5..339d40b8b 100644 --- a/frame/compat/cblas/f77_sub/f77_asum_sub.c +++ b/frame/compat/cblas/f77_sub/f77_asum_sub.c @@ -42,14 +42,18 @@ #undef GENTFUNCR2 #define GENTFUNCR2( ftype_x, ftype_r, chx, chr, blasname, blisname ) \ \ -void PASTEF773(chr,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - ftype_r* rval \ - ) \ +void PASTEF773(chr,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + ftype_r* rval \ + ) \ { \ - *rval = PASTEF772(chr,chx,blasname)( n, \ - x, incx ); \ + *rval = PASTEF772(chr,chx,blasname) \ + ( \ + n, \ + x, incx \ + ); \ } #ifdef BLIS_ENABLE_CBLAS diff --git a/frame/compat/cblas/f77_sub/f77_asum_sub.h b/frame/compat/cblas/f77_sub/f77_asum_sub.h index 284ec760b..829f713d1 100644 --- a/frame/compat/cblas/f77_sub/f77_asum_sub.h +++ b/frame/compat/cblas/f77_sub/f77_asum_sub.h @@ -39,11 +39,12 @@ #undef GENTPROTR2 #define GENTPROTR2( ftype_x, ftype_r, chx, chr, blasname ) \ \ -void PASTEF773(chr,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - ftype_r* rval \ - ); +void PASTEF773(chr,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + ftype_r* rval \ + ); #ifdef BLIS_ENABLE_CBLAS INSERT_GENTPROTR2_BLAS( asum ) diff --git a/frame/compat/cblas/f77_sub/f77_dot_sub.c b/frame/compat/cblas/f77_sub/f77_dot_sub.c index 0f4b09bc4..400a705ca 100644 --- a/frame/compat/cblas/f77_sub/f77_dot_sub.c +++ b/frame/compat/cblas/f77_sub/f77_dot_sub.c @@ -40,18 +40,22 @@ // Define CBLAS subrotine wrapper interfaces. // #undef GENTFUNCDOT -#define GENTFUNCDOT( ftype, chxy, chc, blis_conjx, blasname, blisname ) \ +#define GENTFUNCDOT( ftype, ch, chc, blis_conjx, blasname, blisname ) \ \ -void PASTEF773(chxy,blasname,chc,sub)( \ - const f77_int* n, \ - const ftype* x, const f77_int* incx, \ - const ftype* y, const f77_int* incy, \ - ftype* rval \ - ) \ +void PASTEF773(ch,blasname,chc,sub) \ + ( \ + const f77_int* n, \ + const ftype* x, const f77_int* incx, \ + const ftype* y, const f77_int* incy, \ + ftype* rval \ + ) \ { \ - *rval = PASTEF772(chxy,blasname,chc)( n, \ - x, incx, \ - y, incy ); \ + *rval = PASTEF772(ch,blasname,chc) \ + ( \ + n, \ + x, incx, \ + y, incy \ + ); \ } #ifdef BLIS_ENABLE_CBLAS @@ -62,29 +66,40 @@ INSERT_GENTFUNCDOT_BLAS( dot, NULL ) // Input vectors stored in single precision, computed in double precision, // with result returned in single precision. -void PASTEF772(sds,dot,sub)( const f77_int* n, - const float* sb, - const float* x, const f77_int* incx, - const float* y, const f77_int* incy, - float* rval - ) +void PASTEF772(sds,dot,sub) + ( + const f77_int* n, + const float* sb, + const float* x, const f77_int* incx, + const float* y, const f77_int* incy, + float* rval + ) { - *rval = *sb + PASTEF77(sds,dot)( n, - x, incx, - y, incy ); + *rval = *sb + PASTEF77(sds,dot) + ( + n, + sb, + x, incx, + y, incy + ); } // Input vectors stored in single precision, computed in double precision, // with result returned in double precision. -void PASTEF772(ds,dot,sub)( const f77_int* n, - const float* x, const f77_int* incx, - const float* y, const f77_int* incy, - double* rval - ) +void PASTEF772(ds,dot,sub) + ( + const f77_int* n, + const float* x, const f77_int* incx, + const float* y, const f77_int* incy, + double* rval + ) { - *rval = PASTEF77(ds,dot)( n, - x, incx, - y, incy ); + *rval = PASTEF77(ds,dot) + ( + n, + x, incx, + y, incy + ); } #endif diff --git a/frame/compat/cblas/f77_sub/f77_dot_sub.h b/frame/compat/cblas/f77_sub/f77_dot_sub.h index 70eeec93e..a0c7dcd32 100644 --- a/frame/compat/cblas/f77_sub/f77_dot_sub.h +++ b/frame/compat/cblas/f77_sub/f77_dot_sub.h @@ -37,14 +37,15 @@ // Prototype CBLAS subroutine wrapper interfaces. // #undef GENTPROTDOT -#define GENTPROTDOT( ftype, chxy, chc, blasname ) \ +#define GENTPROTDOT( ftype, ch, chc, blasname ) \ \ -void PASTEF773(chxy,blasname,chc,sub)( \ - const f77_int* n, \ - const ftype* x, const f77_int* incx, \ - const ftype* y, const f77_int* incy, \ - ftype* rval \ - ); +void PASTEF773(ch,blasname,chc,sub) \ + ( \ + const f77_int* n, \ + const ftype* x, const f77_int* incx, \ + const ftype* y, const f77_int* incy, \ + ftype* rval \ + ); #ifdef BLIS_ENABLE_CBLAS INSERT_GENTPROTDOT_BLAS( dot ) @@ -52,16 +53,20 @@ INSERT_GENTPROTDOT_BLAS( dot ) // -- "Black sheep" dot product function prototypes -- -void PASTEF772(sds,dot,sub)( const f77_int* n, - const float* sb, - const float* x, const f77_int* incx, - const float* y, const f77_int* incy, - float* rval - ); +void PASTEF772(sds,dot,sub) + ( + const f77_int* n, + const float* sb, + const float* x, const f77_int* incx, + const float* y, const f77_int* incy, + float* rval + ); -void PASTEF772(ds,dot,sub)( const f77_int* n, - const float* x, const f77_int* incx, - const float* y, const f77_int* incy, - double* rval - ); +void PASTEF772(ds,dot,sub) + ( + const f77_int* n, + const float* x, const f77_int* incx, + const float* y, const f77_int* incy, + double* rval + ); #endif diff --git a/frame/compat/cblas/f77_sub/f77_nrm2_sub.c b/frame/compat/cblas/f77_sub/f77_nrm2_sub.c index 7534d0cfb..5009e7a73 100644 --- a/frame/compat/cblas/f77_sub/f77_nrm2_sub.c +++ b/frame/compat/cblas/f77_sub/f77_nrm2_sub.c @@ -42,14 +42,18 @@ #undef GENTFUNCR2 #define GENTFUNCR2( ftype_x, ftype_r, chx, chr, blasname, blisname ) \ \ -void PASTEF773(chr,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - ftype_r* rval \ - ) \ +void PASTEF773(chr,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + ftype_r* rval \ + ) \ { \ - *rval = PASTEF772(chr,chx,blasname)( n, \ - x, incx ); \ + *rval = PASTEF772(chr,chx,blasname) \ + ( \ + n, \ + x, incx \ + ); \ } #ifdef BLIS_ENABLE_CBLAS diff --git a/frame/compat/cblas/f77_sub/f77_nrm2_sub.h b/frame/compat/cblas/f77_sub/f77_nrm2_sub.h index d966f15f7..1ffbf36ac 100644 --- a/frame/compat/cblas/f77_sub/f77_nrm2_sub.h +++ b/frame/compat/cblas/f77_sub/f77_nrm2_sub.h @@ -39,11 +39,12 @@ #undef GENTPROTR2 #define GENTPROTR2( ftype_x, ftype_r, chx, chr, blasname ) \ \ -void PASTEF773(chr,chx,blasname,sub)( \ - const f77_int* n, \ - const ftype_x* x, const f77_int* incx, \ - ftype_r* rval \ - ); +void PASTEF773(chr,chx,blasname,sub) \ + ( \ + const f77_int* n, \ + const ftype_x* x, const f77_int* incx, \ + ftype_r* rval \ + ); #ifdef BLIS_ENABLE_CBLAS INSERT_GENTPROTR2_BLAS( nrm2 )