Commit af590455 authored by Satish Patil's avatar Satish Patil
Browse files

Fix comparisons in div_w operator

parent 7d6d31ec
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -982,7 +982,7 @@ Word32 div_w( Word32 L_num, Word32 L_den, Word16 bits )
    W_num = W_deposit32_l( L_num );
    W_den = W_deposit32_l( L_den );

    IF( GT_64( W_num, W_den ) )
    IF( GE_64( W_num, W_den ) )
    {
        return MAX_32;
    }
@@ -996,7 +996,7 @@ Word32 div_w( Word32 L_num, Word32 L_den, Word16 bits )
            L_var_out = L_shl( L_var_out, 1 );
            W_num = W_shl( W_num, 1 );

            IF( GT_64( W_num, W_den ) )
            if( GE_64( W_num, W_den ) )
            {
                W_num = W_sub( W_num, W_den );
                L_var_out = L_add( L_var_out, 1 );