Commit 37049c2c authored by multrus's avatar multrus
Browse files

clean up RCcontextMapping_encode2_estimate_bandWise_start_fx()

parent fe6d3911
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1672,8 +1672,6 @@ Word16 RCcontextMapping_encode2_estimate_bandWise_start_fx(
    /* bits to encode lastnz */
    k = 1;
    move16();
    i = 2;
    move16();

    WHILE( LT_16( k, hContextMem->nt_half ) )
    {
@@ -1681,12 +1679,11 @@ Word16 RCcontextMapping_encode2_estimate_bandWise_start_fx(
        move64();

        k = shl( k, 1 );
        i = add( i, 1 );
        /* check while condition */
    }

    /* bits to encode lastnz */
    hContextMem->nbits_old = i;
    hContextMem->nbits_old = round_fx( W_shr( hContextMem->bit_estimate_fx, Q7 ) ); /* Q0 */;
    move16();

    hContextMem->ctx = 0;