riscv64/imin: Fix wrong comparison
authorZhaofeng Li <hello@zhaofeng.li>
Mon, 7 Jun 2021 22:49:39 +0000 (22:49 +0000)
committerZhaofeng Li <hello@zhaofeng.li>
Mon, 7 Jun 2021 22:49:39 +0000 (22:49 +0000)
Same as #1990.

kernel/riscv64/imin.c

index 598cba3..ffc6522 100644 (file)
@@ -53,7 +53,7 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
 
        while(i < n)
        {
-               if( x[ix] > minf )
+               if( x[ix] < minf )
                {
                        min = i;
                        minf = x[ix];