Previous 15994 Revisions Next

r15055 Sunday 29th April, 2012 at 16:50:26 UTC by R. Belmont
Fix GCC 4.6 compile (nw)
[src/lib/lib7z]LzmaEnc.c
[src/lib/libflac/libflac]lpc.c

src/lib/lib7z/LzmaEnc.c
r15054r15055
19051905static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig)
19061906{
19071907  UInt32 beforeSize = kNumOpts;
1908  Bool btMode;
1908//  Bool btMode;
19091909  if (!RangeEnc_Alloc(&p->rc, alloc))
19101910    return SZ_ERROR_MEM;
1911  btMode = (p->matchFinderBase.btMode != 0);
1911//  btMode = (p->matchFinderBase.btMode != 0);
19121912  #ifndef _7ZIP_ST
19131913  p->mtMode = (p->multiThread && !p->fastMode && btMode);
19141914  #endif
src/lib/libflac/libflac/lpc.c
r15054r15055
112112void FLAC__lpc_compute_lp_coefficients(const FLAC__real autoc[], unsigned *max_order, FLAC__real lp_coeff[][FLAC__MAX_LPC_ORDER], FLAC__double error[])
113113{
114114   unsigned i, j;
115   FLAC__double r, err, ref[FLAC__MAX_LPC_ORDER], lpc[FLAC__MAX_LPC_ORDER];
115   FLAC__double r, err, lpc[FLAC__MAX_LPC_ORDER]; // , ref[FLAC__MAX_LPC_ORDER];
116116
117117   FLAC__ASSERT(0 != max_order);
118118   FLAC__ASSERT(0 < *max_order);
r15054r15055
126126      r = -autoc[i+1];
127127      for(j = 0; j < i; j++)
128128         r -= lpc[j] * autoc[i-j];
129      ref[i] = (r/=err);
129//      ref[i] = (r/=err);
130130
131131      /* Update LPC coefficients and total error. */
132132      lpc[i]=r;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team