~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to src/tabinit.c

Tags: upstream-0.66
ImportĀ upstreamĀ versionĀ 0.66

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
        tabinit.c: initialize tables...
3
3
 
4
4
        copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
5
 
        see COPYING and AUTHORS files in distribution or http://mpg123.de
 
5
        see COPYING and AUTHORS files in distribution or http://mpg123.org
6
6
        initially written by Michael Hipp
7
7
*/
8
8
 
15
15
static unsigned char *conv16to8_buf = NULL;
16
16
unsigned char *conv16to8;
17
17
 
18
 
#ifndef USE_MMX
19
 
real decwin[512+32];
20
 
#ifdef USE_ALTIVEC
 
18
/* All optimizations share this code - with the exception of MMX */
 
19
#ifndef OPT_MMX_ONLY
 
20
real decwin[512+32]; /* MMX has another one */
 
21
/* that altivec alignment part here should not hurt generic code, I hope */
 
22
#ifdef OPT_ALTIVEC
21
23
static real __attribute__ ((aligned (16))) cos64[16];
22
24
static real __attribute__ ((aligned (16))) cos32[8];
23
25
static real __attribute__ ((aligned (16))) cos16[4];
58
60
 64019, 65290, 66494, 67629, 68692, 69679, 70590, 71420, 72169, 72835,
59
61
 73415, 73908, 74313, 74630, 74856, 74992, 75038 };
60
62
 
61
 
void make_decode_tables(long scaleval)
 
63
void make_decode_tables(scale_t scaleval)
62
64
{
63
65
  int i,j,k,kr,divv;
64
66
  real *costab;