initialize result at declaration instead of quick-exit only

This commit is contained in:
Andrew 2018-11-20 20:58:08 +01:00
parent c1fa2c801c
commit ae895f8648
1 changed files with 3 additions and 3 deletions

View File

@ -154,12 +154,12 @@ static void zdot_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *d) {
OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) {
BLASLONG i = 0;
BLASLONG ix=0, iy=0;
OPENBLAS_COMPLEX_FLOAT result;
OPENBLAS_COMPLEX_FLOAT result=OPENBLAS_MAKE_COMPLEX_FLOAT(0.0,0.0);
FLOAT dot[4] __attribute__ ((aligned(16))) = {0.0, 0.0, 0.0, 0.0};
if (n <= 0) {
CREAL(result) = 0.0;
CIMAG(result) = 0.0;
/* CREAL(result) = 0.0;
CIMAG(result) = 0.0; */
return (result);
}