Browse Source

dot.c early bail fix

tags/v0.3.22^2
Sergei Lewis 2 years ago
parent
commit
cb0a70e0e2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      kernel/generic/dot.c
  2. +1
    -1
      kernel/riscv64/dot.c

+ 1
- 1
kernel/generic/dot.c View File

@@ -43,7 +43,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
FLOAT dot = 0.0 ;
#endif

if ( n < 0 ) return(dot);
if ( n < 1 ) return(dot);

if ( (inc_x == 1) && (inc_y == 1) )
{


+ 1
- 1
kernel/riscv64/dot.c View File

@@ -46,7 +46,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
BLASLONG ix=0,iy=0;
double dot = 0.0 ;

if ( n < 0 ) return(dot);
if ( n < 1 ) return(dot);

while(i < n)
{


Loading…
Cancel
Save