From 02a025f9c1fa1df6995b25bea0ad19db7a0ff3e5 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 11 Mar 2024 22:52:18 +0100 Subject: [PATCH] remove early exit on negative inc_x --- kernel/arm64/dznrm2_thunderx2t99.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arm64/dznrm2_thunderx2t99.c b/kernel/arm64/dznrm2_thunderx2t99.c index 6077c85dd1..b78878cd45 100644 --- a/kernel/arm64/dznrm2_thunderx2t99.c +++ b/kernel/arm64/dznrm2_thunderx2t99.c @@ -345,7 +345,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) #endif FLOAT ssq, scale; - if (n <= 0 || inc_x <= 0) return 0.0; + if (n <= 0 || inc_x == 0) return 0.0; #if defined(SMP) if (n <= 10000)