Skip to content

Commit 2fc8d69

Browse files
committed
Some cosmetic changes
1 parent b4dc1b9 commit 2fc8d69

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Common/include/linear_algebra/blas_structure.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ class CBlasStructure {
489489
}
490490

491491
private:
492-
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || \
493-
(defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
492+
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || (defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
494493
/* Blocking parameters for the outer kernel. We multiply mc x kc blocks of
495494
the matrix A with kc x nc panels of the matrix B (this approach is referred
496495
to as `gebp` in the literature). */

Common/src/linear_algebra/blas_structure.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ extern "C" void dgemv_(char*, const int*, const int*, const passivedouble*, cons
4343

4444
/* Constructor. Initialize the const member variables, if needed. */
4545
CBlasStructure::CBlasStructure()
46-
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || \
47-
(defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
46+
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || (defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
4847
: mc(256),
4948
kc(128),
5049
nc(128)
@@ -61,8 +60,7 @@ void CBlasStructure::gemm(const int M, const int N, const int K, const su2double
6160
if (config) config->GEMM_Tick(&timeGemm);
6261
#endif
6362

64-
#if (defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE)) || \
65-
!(defined(HAVE_MKL) || defined(HAVE_BLAS))
63+
#if (defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE)) || !(defined(HAVE_MKL) || defined(HAVE_BLAS))
6664
/* Native implementation of the matrix product. This optimized implementation
6765
assumes that the matrices are in column major order. This can be
6866
accomplished by swapping N and M and A and B. This implementation is based
@@ -119,8 +117,7 @@ void CBlasStructure::gemv(const int M, const int N, const su2double* A, const su
119117
#endif
120118
}
121119

122-
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || \
123-
(defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
120+
#if !(defined(HAVE_BLAS) || defined(HAVE_MKL)) || (defined(CODI_REVERSE_TYPE) || defined(CODI_FORWARD_TYPE))
124121

125122
/* Macros for accessing submatrices of a matmul using the leading dimension. */
126123
#define A(i, j) a[(j)*lda + (i)]

0 commit comments

Comments
 (0)