Skip to content

Commit b46e2b5

Browse files
authored
Make return parameter of cblas_Xdotc_sub, cblas_Xdotu_sub a void pointer as well
1 parent 3ce401f commit b46e2b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

interface/zdot.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ OPENBLAS_COMPLEX_FLOAT NAME( blasint *N, FLOAT *x, blasin
148148
#else
149149

150150
#ifdef FORCE_USE_STACK
151-
void CNAME(blasint n, void *vx, blasint incx, void *vy, blasint incy, void *vresult){
152-
OPENBLAS_COMPLEX_FLOAT *result;
151+
void CNAME(blasint n, void *vx, blasint incx, void *vy, blasint incy, void* vresult){
152+
OPENBLAS_COMPLEX_FLOAT *result= (OPENBLAS_COMPLEX_FLOAT*)vresult;
153153
#else
154154
OPENBLAS_COMPLEX_FLOAT CNAME(blasint n, void *vx, blasint incx, void *vy, blasint incy){
155155

@@ -165,7 +165,6 @@ OPENBLAS_COMPLEX_FLOAT CNAME(blasint n, void *vx, blasint incx, void *vy, blasin
165165
#ifdef FORCE_USE_STACK
166166
OPENBLAS_COMPLEX_FLOAT zero=OPENBLAS_MAKE_COMPLEX_FLOAT(0.0, 0.0);
167167
*result = zero;
168-
vresult=(void*)result;
169168
// CREAL(*result) = 0.0;
170169
// CIMAG(*result) = 0.0;
171170
return;
@@ -185,10 +184,8 @@ OPENBLAS_COMPLEX_FLOAT CNAME(blasint n, void *vx, blasint incx, void *vy, blasin
185184

186185
#ifndef CONJ
187186
*result = DOTU_K(n, x, incx, y, incy);
188-
vresult=(void*)result;
189187
#else
190188
*result = DOTC_K(n, x, incx, y, incy);
191-
vresult=(void*)result;
192189
#endif
193190

194191
FUNCTION_PROFILE_END(4, 2 * n, 2 * n);

0 commit comments

Comments
 (0)