Minor C code fixes in kernel/arm

This commit is contained in:
Ralph Campbell
2015-11-06 20:04:56 +05:30
committed by Ashwin Sekhar T K
parent 55e4332f00
commit c053559ed9
17 changed files with 64 additions and 53 deletions

View File

@@ -54,13 +54,15 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
BLASLONG ix=0;
FLOAT maxf=0.0;
if (n < 0 || inc_x < 1 ) return(maxf);
if (n <= 0 || inc_x <= 0) return(maxf);
maxf=ABS(x[0]);
ix += inc_x;
i++;
while(i < n)
{
if( ABS(x[ix]) > ABS(maxf) )
if( ABS(x[ix]) > maxf )
{
maxf = ABS(x[ix]);
}