Skip to content

Commit e41d01b

Browse files
authored
remove early exit on negative inc_x
1 parent 02a025f commit e41d01b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/arm64/scnrm2_thunderx2t99.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
315315
FLOAT nrm2 = 0.0;
316316
double nrm2_double = 0.0;
317317

318-
if (n <= 0 || inc_x <= 0) return 0.0;
318+
if (n <= 0 || inc_x == 0) return 0.0;
319319

320320
#if defined(SMP)
321321
if (n <= 10000)

0 commit comments

Comments
 (0)