Commit d951d39c authored by vaillancour's avatar vaillancour
Browse files

Prevent the assert to catch cases that are == 0

parent 84d67a56
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ Word16 Log2_norm_lc( /* (o) : Fractional part of Log2. (range: 0<=val
    if ( L_x <= 0 )
        L_x = L_deposit_h( 0x4000 );
#else
        
    if ( L_x > 0 )                   /* There are many cases in the code where L_x == 0 */
        assert( L_x >= 0x40000000 ); /* If assert fail, means input is not normalized as it should be */
    L_x = L_max( L_x, 0x40000000 );
#endif