fix loop condition for incx < 0

This commit is contained in:
Martin Kroeker
2024-03-12 15:49:41 +01:00
committed by GitHub
parent 20016a0096
commit 6b89e1f1d7

View File

@@ -62,7 +62,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
inc_x2 = 2 * inc_x;
n *= inc_x2;
while(i < n)
while(abs(i) < abs(n))
{
if ( x[i] != 0.0 )