| 1 |
// cos MPEG decoding tables |
| 2 |
// output of: |
| 3 |
// src/libmpg123/calctables cos |
| 4 |
|
| 5 |
#if defined(RUNTIME_TABLES) |
| 6 |
|
| 7 |
#ifdef REAL_IS_FLOAT |
| 8 |
|
| 9 |
// aligned to 16 bytes for vector instructions, e.g. AltiVec |
| 10 |
|
| 11 |
static ALIGNED(16) real cos64[16]; |
| 12 |
static ALIGNED(16) real cos32[8]; |
| 13 |
static ALIGNED(16) real cos16[4]; |
| 14 |
static ALIGNED(16) real cos8[2]; |
| 15 |
static ALIGNED(16) real cos4[1]; |
| 16 |
|
| 17 |
#endif |
| 18 |
|
| 19 |
#else |
| 20 |
|
| 21 |
#ifdef REAL_IS_FLOAT |
| 22 |
|
| 23 |
// aligned to 16 bytes for vector instructions, e.g. AltiVec |
| 24 |
|
| 25 |
static const ALIGNED(16) real cos64[16] = |
| 26 |
{ |
| 27 |
5.00602998e-01, 5.05470960e-01, 5.15447310e-01, 5.31042591e-01 |
| 28 |
, 5.53103896e-01, 5.82934968e-01, 6.22504123e-01, 6.74808341e-01 |
| 29 |
, 7.44536271e-01, 8.39349645e-01, 9.72568238e-01, 1.16943993e+00 |
| 30 |
, 1.48416462e+00, 2.05778101e+00, 3.40760842e+00, 1.01900081e+01 |
| 31 |
}; |
| 32 |
static const ALIGNED(16) real cos32[8] = |
| 33 |
{ |
| 34 |
5.02419286e-01, 5.22498615e-01, 5.66944035e-01, 6.46821783e-01 |
| 35 |
, 7.88154623e-01, 1.06067769e+00, 1.72244710e+00, 5.10114862e+00 |
| 36 |
}; |
| 37 |
static const ALIGNED(16) real cos16[4] = |
| 38 |
{ |
| 39 |
5.09795579e-01, 6.01344887e-01, 8.99976223e-01, 2.56291545e+00 |
| 40 |
}; |
| 41 |
static const ALIGNED(16) real cos8[2] = |
| 42 |
{ |
| 43 |
5.41196100e-01, 1.30656296e+00 |
| 44 |
}; |
| 45 |
static const ALIGNED(16) real cos4[1] = |
| 46 |
{ |
| 47 |
7.07106781e-01 |
| 48 |
}; |
| 49 |
|
| 50 |
#endif |
| 51 |
|
| 52 |
#ifdef REAL_IS_FIXED |
| 53 |
|
| 54 |
static const real cos64[16] = |
| 55 |
{ |
| 56 |
8398725, 8480395, 8647771, 8909416 |
| 57 |
, 9279544, 9780026, 10443886, 11321405 |
| 58 |
, 12491246, 14081950, 16316987, 19619946 |
| 59 |
, 24900150, 34523836, 57170182, 170959967 |
| 60 |
}; |
| 61 |
static const real cos32[8] = |
| 62 |
{ |
| 63 |
8429197, 8766072, 9511743, 10851869 |
| 64 |
, 13223040, 17795219, 28897867, 85583072 |
| 65 |
}; |
| 66 |
static const real cos16[4] = |
| 67 |
{ |
| 68 |
8552951, 10088893, 15099095, 42998586 |
| 69 |
}; |
| 70 |
static const real cos8[2] = |
| 71 |
{ |
| 72 |
9079764, 21920489 |
| 73 |
}; |
| 74 |
static const real cos4[1] = |
| 75 |
{ |
| 76 |
11863283 |
| 77 |
}; |
| 78 |
|
| 79 |
#endif |
| 80 |
|
| 81 |
#endif |