Skip to content

Commit ed8ee7e

Browse files
committed
fix the compilation bug about c(z)dotc_
1 parent 15548cf commit ed8ee7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/correctness/blas-lapack.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ complex cdotu( int n, complex *x, int incx, complex *y, int incy)
655655
#elif defined( __APPLE__)
656656
cblas_cdotu_sub(n, x, incx, y, incy, &ans);
657657
#else
658-
cdotusub_(&n, x, &incx, y, &incy, &ans);
658+
ans = cdotu_(&n, x, &incx, y, &incy);
659659
#endif
660660

661661
return ans;
@@ -670,7 +670,7 @@ doublecomplex zdotu( int n, doublecomplex *x, int incx, doublecomplex *y, int i
670670
#elif defined(__APPLE__)
671671
cblas_zdotu_sub(n, x, incx, y, incy, &ans);
672672
#else
673-
zdotusub_(&n, x, &incx, y, &incy, &ans);
673+
ans = zdotu_(&n, x, &incx, y, &incy);
674674
#endif
675675

676676
return ans;
@@ -685,7 +685,7 @@ complex cdotc( int n, complex *x, int incx, complex *y, int incy)
685685
#elif defined(__APPLE__)
686686
cblas_cdotc_sub(n, x, incx, y, incy, &ans);
687687
#else
688-
cdotcsub_(&n, x, &incx, y, &incy, &ans);
688+
ans = cdotc_(&n, x, &incx, y, &incy);
689689
#endif
690690

691691
return ans;
@@ -700,7 +700,7 @@ doublecomplex zdotc( int n, doublecomplex *x, int incx, doublecomplex *y, int i
700700
#elif defined(__APPLE__)
701701
cblas_zdotc_sub(n, x, incx, y, incy, &ans);
702702
#else
703-
zdotcsub_(&n, x, &incx, y, &incy, &ans);
703+
ans = zdotc_(&n, x, &incx, y, &incy);
704704
#endif
705705

706706
return ans;

0 commit comments

Comments
 (0)