Commit 1bd5dfac authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

port float MR 1502

parent add4f598
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@
#define FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN        /* FhG: fix for #1003: fix USAN caused by ParamISM reconfig                    */
#define FIX_1001_ARI_HM_OVERFLOW                        /* FhG: (no changes needed in BASOP) fix for undef behaviour in in the harmonic TCX model arithmetic coder */
#define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE            /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */
#define FIX_1060_USAN_ARRAY_BOUNDS                      /* FhG: issue 1060: USAN array-bounds errors */

/* #################### End BASOP porting switches ############################ */

+11 −3
Original line number Diff line number Diff line
@@ -4061,11 +4061,19 @@ void ivas_dirac_dec_render_sf_fx(
                                {
                                    Word32 tmp;
                                    tmp = Mpy_32_32( g_fx, *tc_re_fx );
#ifdef FIX_1060_USAN_ARRAY_BOUNDS
									Cldfb_RealBuffer_fx[j2][k][l] = Ladd(Cldfb_RealBuffer[j2][k][l],  tmp );
#else
									Cldfb_RealBuffer_fx[j2][0][k * hSpatParamRendCom->num_freq_bands + l] = L_add( Cldfb_RealBuffer_fx[j2][0][k * hSpatParamRendCom->num_freq_bands + l], tmp );
#endif
									move32();
                                    tc_re_fx++;
                                    tmp = Mpy_32_32( g_fx, *tc_im_fx );
#ifdef FIX_1060_USAN_ARRAY_BOUNDS
									Cldfb_ImagBuffer_fx[j2][k][l] = Ladd(Cldfb_ImagBuffer_fx[j2][k][l], tmp);
#else
                                    Cldfb_ImagBuffer_fx[j2][0][k * hSpatParamRendCom->num_freq_bands + l] = L_add( Cldfb_ImagBuffer_fx[j2][0][k * hSpatParamRendCom->num_freq_bands + l], tmp );
#endif
									move32();
                                    tc_re_fx++;
                                }