Skip to content

Commit 4d250d0

Browse files
authored
Rearrange ifdefs
1 parent de13933 commit 4d250d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utest/test_potrs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ void BLASFUNC(zpotrs_(char*, BLASINT*, BLASINT*, complex double*,
4242
//https://github.com/xianyi/OpenBLAS/issues/695
4343
CTEST(potrf, bug_695){
4444

45-
#ifdef BUILD_COMPLEX
4645
openblas_complex_float A1[100] =
4746
{
4847
openblas_make_complex_float(5.8525753, +0.0),
@@ -151,11 +150,11 @@ CTEST(potrf, bug_695){
151150

152151
blasint n=10;
153152
blasint info[1];
153+
#ifdef BUILD_COMPLEX
154154
BLASFUNC(cpotrf)(&up, &n, (float*)(A1), &n, info);
155155
//printf("%g+%g*I\n", creal(A1[91]), cimag(A1[91]));
156156
#endif
157157

158-
#ifdef BUILD_COMPLEX16
159158
openblas_complex_double A2[100] =
160159
{
161160
openblas_make_complex_double(3.0607147216796875, +0.0),
@@ -284,9 +283,9 @@ CTEST(potrf, bug_695){
284283
};
285284
char lo = 'L';
286285
blasint nrhs = 2;
286+
#ifdef BUILD_COMPLEX16
287287
BLASFUNC(zpotrs)(&lo, &n, &nrhs, (double*)(A2), &n, (double*)(B), &n, info);
288288
#endif
289-
#ifdef BUILD_COMPLEX
290289
// note that this is exactly equal to A1
291290
openblas_complex_float A3[100] =
292291
{
@@ -391,6 +390,7 @@ CTEST(potrf, bug_695){
391390
openblas_make_complex_float(-0.9617417, -1.2486815),
392391
openblas_make_complex_float(3.4629636, +0.0)
393392
};
393+
#ifdef BUILD_COMPLEX
394394
BLASFUNC(cpotrf)(&up, &n, (float*)(A3), &n, info);
395395
// printf("%g+%g*I\n", creal(A3[91]), cimag(A3[91]));
396396
if(isnan(CREAL(A3[91])) || isnan(CIMAG(A3[91]))) {

0 commit comments

Comments
 (0)