Skip to content

Commit db70c7f

Browse files
authored
handle incx < 0
1 parent dee8557 commit db70c7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/riscv64/znrm2_rvv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
6969
{
7070
BLASLONG i=0, j=0;
7171

72-
if (n <= 0 || inc_x <= 0) return(0.0);
72+
if (n <= 0 || inc_x == 0) return(0.0);
7373

7474
FLOAT_V_T vr, v0, v_zero;
7575
unsigned int gvl = 0;

0 commit comments

Comments
 (0)