Commit 62b4fe98 authored by Arthur Tritthart's avatar Arthur Tritthart
Browse files

i_mult returns now result of buggy compiler

parent 2a00f47d
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -202,7 +202,8 @@ static INLINE Word16 i_mult( Word16 a, Word16 b ) /* Weight FF
        {
            fprintf( stderr, "BASOP WATCH i_mult: 0x%08X = 0x%04X * 0x%04X (legacy: 0x%08X <= 16 bit overflow in File: %s, line: %d\n", c, a & 0xFFFF, b & 0xFFFF, (Word32) c1, fname, linenumber );
            BASOP_WATCH_i_mult_Cnt++;
            assert( 0 );
            //assert( 0 );
            return c1;
        }
    }
#endif
@@ -251,8 +252,8 @@ static INLINE Word16 i_mult_o( Word16 a, Word16 b, Flag *Overflow ) /* integer M
            if ( Overflow == (Flag *) NULL )
                printf( "BASOP WATCH i_mult_o: Overflow == NULL File: %s, line: %d\n", fname, linenumber );
            BASOP_WATCH_i_mult_o_Cnt++;
            // return (Word16) c1;  // Legacy return value to bypass Crash due to NULL pointer
            assert( 0 );
            // assert( 0 );
            return c1;  // Legacy return value to bypass Crash due to NULL pointer
        }
    }

@@ -320,7 +321,8 @@ static INLINE Word16 i_mult_sat( Word16 a, Word16 b ) /* integer Mpy with satura
        {
            fprintf( stderr, "BASOP WATCH i_mult_sat: 0x%08X = 0x%04X * 0x%04X (legacy: 0x%08X <= 16 bit overflow  File: %s  line %d\n", c, a & 0xFFFF, b & 0xFFFF, (Word32) c1, fname, linenumber );
            BASOP_WATCH_i_mult_sat_Cnt++;
            assert( 0 );
            //assert( 0 );
            return c1;
        }
    }
#endif /* BASOP_WATCH_i_mult_sat */