Skip to content
Myr

stb_vorbis: fix unused variables

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Conflicts: stb_vorbis.c

authored by Ronny Chevalier · committed by Sean Barrett · parent 260741e · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:stb_vorbis.c+3 added-4 removed
1696 unmodified lines
1697 #define CODEBOOK_ELEMENT_FAST(c,off) (c->multiplicands[off])1698 #define CODEBOOK_ELEMENT_BASE(c) (0)1699#endif17001701static int codebook_decode_start(vorb *f, Codebook *c, int len)1701static int codebook_decode_start(vorb *f, Codebook *c)1702{1703 int z = -1;17041705 // type 0 is only legal in a scalar context
13 unmodified lines
1719}17201721static int codebook_decode(vorb *f, Codebook *c, float *output, int len)1722{1723 int i,z = codebook_decode_start(f,c,len);1723 int i,z = codebook_decode_start(f,c);1724 if (z < 0) return FALSE;1725 if (len > c->dimensions) len = c->dimensions;17261727#ifdef STB_VORBIS_DIVIDES_IN_CODEBOOK
30 unmodified lines
1758}17591760static int codebook_decode_step(vorb *f, Codebook *c, float *output, int len, int step)1761{1762 int i,z = codebook_decode_start(f,c,len);1762 int i,z = codebook_decode_start(f,c);1763 float last = CODEBOOK_ELEMENT_BASE(c);1764 if (z < 0) return FALSE;1765 if (len > c->dimensions) len = c->dimensions;1766
860 unmodified lines
2627}26282629static void imdct_step3_inner_s_loop_ld654(int n, float *e, int i_off, float *A, int base_n)2630{2631 int k_off = -8;2631 int a_off = base_n >> 3;2632 float A2 = A[0+a_off];2633 float *z = e + i_off;2634 float *base = z - 16 * n;
2807 unmodified lines