Commit 22ebb26b authored by vaillancour's avatar vaillancour
Browse files

Fixes JBM, critical Carry/overflow

parent bc5f594a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -19,7 +19,11 @@ Word32 rtpTs_add( Word32 ts1, Word32 ts2 )
#endif

    Carry = 0;
#ifdef BASOP_NOGLOB  /* Critical Carry/Overflow */
    ret = L_add_co(ts1, ts2, &Carry, &Overflow);
#else
    ret = L_add_c(ts1, ts2);
#endif
    Carry = 0;
    Overflow = 0;

@@ -37,7 +41,11 @@ Word32 rtpTs_sub( Word32 ts1, Word32 ts2 )

    BASOP_SATURATE_WARNING_OFF_EVS
    Carry = 1;
#ifdef BASOP_NOGLOB  /* Critical Carry/Overflow */
    ret = L_sub_co(ts1, ts2, &Carry, &Overflow);
#else
    ret = L_sub_c(ts1, ts2);
#endif
    BASOP_SATURATE_WARNING_ON_EVS
    Carry = 0;
    Overflow = 0;