Skip to content

Commit 4a6025a

Browse files
authored
Merge pull request #4552 from martin-frbg/issue4551
Allow negative INC_X in arm64 ThunderX2T99 and Apple M ?NRM2
2 parents afab848 + e41d01b commit 4a6025a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/arm64/dznrm2_thunderx2t99.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
345345
#endif
346346
FLOAT ssq, scale;
347347

348-
if (n <= 0 || inc_x <= 0) return 0.0;
348+
if (n <= 0 || inc_x == 0) return 0.0;
349349

350350
#if defined(SMP)
351351
if (n <= 10000)

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)