70 void upzero (
int dlt,
int *dlti,
int *bli);
88 12, -44, -44, 212, 48, -624, 128, 1448,
89 -840, -3220, 3804, 15504, 15504, 3804, -3220, -840,
90 1448, 128, -624, 48, 212, -44, -44, 12
108 0, -20456, -12896, -8968, -6288, -4240, -2584, -1200,
109 20456, 12896, 8968, 6288, 4240, 2584, 1200, 0
114 -136, -136, -136, -136, -24808, -21904, -19008, -16704,
115 -14984, -13512, -12280, -11192, -10232, -9360, -8576, -7856,
116 -7192, -6576, -6000, -5456, -4944, -4464, -4008, -3576,
117 -3168, -2776, -2400, -2032, -1688, -1360, -1040, -728,
118 24808, 21904, 19008, 16704, 14984, 13512, 12280, 11192,
119 10232, 9360, 8576, 7856, 7192, 6576, 6000, 5456,
120 4944, 4464, 4008, 3576, 3168, 2776, 2400, 2032,
121 1688, 1360, 1040, 728, 432, 136, -432, -136
129 -60, 3042, 1198, 538, 334, 172, 58, -30,
130 3042, 1198, 538, 334, 172, 58, -30, -60
134 2048, 2093, 2139, 2186, 2233, 2282, 2332, 2383,
135 2435, 2489, 2543, 2599, 2656, 2714, 2774, 2834,
136 2896, 2960, 3025, 3091, 3158, 3228, 3298, 3371,
137 3444, 3520, 3597, 3676, 3756, 3838, 3922, 4008
148 280, 576, 880, 1200, 1520, 1864, 2208, 2584,
149 2960, 3376, 3784, 4240, 4696, 5200, 5712, 6288,
150 6864, 7520, 8184, 8968, 9752, 10712, 11664, 12896,
151 14120, 15840, 17560, 20456, 23352, 32767
154 #ifdef INITIALIZATIONS 163 61, 60, 59, 58, 57, 56, 55, 54,
164 53, 52, 51, 50, 49, 48, 47, 46,
165 45, 44, 43, 42, 41, 40, 39, 38,
166 37, 36, 35, 34, 33, 32, 32
172 63, 62, 31, 30, 29, 28, 27, 26,
173 25, 24, 23, 22, 21, 20, 19, 18,
174 17, 16, 15, 14, 13, 12, 11, 10,
179 #ifdef INITIALIZATIONS 188 -7408, -1616, 7408, 1616
210 #ifdef INITIALIZATIONS 263 encode (
int xin1,
int xin2)
267 int *tqmf_ptr, *tqmf_ptr1;
274 xa = (long) (*tqmf_ptr++) * (*h_ptr++);
275 xb = (long) (*tqmf_ptr++) * (*h_ptr++);
277 for (i = 0; i < 10; i++)
279 xa += (long) (*tqmf_ptr++) * (*h_ptr++);
280 xb += (long) (*tqmf_ptr++) * (*h_ptr++);
283 xa += (long) (*tqmf_ptr++) * (*h_ptr++);
284 xb += (long) (*tqmf_ptr) * (*h_ptr++);
287 tqmf_ptr1 = tqmf_ptr - 2;
288 for (i = 0; i < 22; i++)
289 *tqmf_ptr-- = *tqmf_ptr1--;
294 xl = (xa + xb) >> 15;
295 xh = (xa - xb) >> 15;
372 decis = (564
L * (long)
deth) >> 12
L;
373 if (
abs (
eh) > decis)
410 return (
il | (ih << 6));
421 int *ac_ptr, *ac_ptr1, *ad_ptr, *ad_ptr1;
524 xa1 = (long)
xd *(*h_ptr++);
525 xa2 = (long)
xs *(*h_ptr++);
527 for (i = 0; i < 10; i++)
529 xa1 += (long) (*ac_ptr++) * (*h_ptr++);
530 xa2 += (long) (*ad_ptr++) * (*h_ptr++);
533 xa1 += (long) (*ac_ptr) * (*h_ptr++);
534 xa2 += (long) (*ad_ptr) * (*h_ptr++);
541 ac_ptr1 = ac_ptr - 1;
542 ad_ptr1 = ad_ptr - 1;
543 for (i = 0; i < 10; i++)
545 *ac_ptr-- = *ac_ptr1--;
546 *ad_ptr-- = *ad_ptr1--;
566 for (i = 0; i < 6; i++)
574 for (i = 0; i < 6; i++)
582 for (i = 0; i < 24; i++)
585 for (i = 0; i < 11; i++)
600 zl = (long) (*bpl++) * (*dlt++);
601 for (i = 1; i < 6; i++)
602 zl += (
long) (*bpl++) * (*dlt++);
604 return ((
int) (zl >> 14));
617 pl += (long) al2 *pl2;
618 return ((
int) (pl >> 15));
631 for (mil = 0; mil < 30; mil++)
652 wd = ((long) nbl * 127
L) >> 7
L;
667 wd1 = (nbl >> 6) & 31;
669 wd3 =
ilb_table[wd1] >> (shift_constant + 1 - wd2);
683 for (i = 0; i < 6; i++)
685 bli[i] = (int) ((255
L * bli[i]) >> 8
L);
690 for (i = 0; i < 6; i++)
692 if ((
long) dlt * dlti[i] >= 0)
696 wd3 = (int) ((255
L * bli[i]) >> 8
L);
716 wd2 = 4
L * (long) al1;
717 if ((
long) plt * plt1 >= 0
L)
720 if ((
long) plt * plt2 >= 0
L)
728 apl2 = wd4 + (127
L * (long) al2 >> 7
L);
746 wd2 = ((long) al1 * 255
L) >> 8
L;
747 if ((
long) plt * plt1 >= 0
L)
749 apl1 = (int) wd2 + 192;
753 apl1 = (int) wd2 - 192;
771 wd = ((long) nbh * 127
L) >> 7
L;
793 0x44, 0x44, 0x44, 0x44, 0x44,
794 0x44, 0x44, 0x44, 0x44, 0x44,
795 0x44, 0x44, 0x44, 0x44, 0x44,
796 0x44, 0x44, 0x43, 0x43, 0x43,
797 0x43, 0x43, 0x43, 0x43, 0x42,
798 0x42, 0x42, 0x42, 0x42, 0x42,
799 0x41, 0x41, 0x41, 0x41, 0x41,
800 0x40, 0x40, 0x40, 0x40, 0x40,
801 0x40, 0x40, 0x40, 0x3f, 0x3f,
802 0x3f, 0x3f, 0x3f, 0x3e, 0x3e,
803 0x3e, 0x3e, 0x3e, 0x3e, 0x3d,
804 0x3d, 0x3d, 0x3d, 0x3d, 0x3d,
805 0x3c, 0x3c, 0x3c, 0x3c, 0x3c,
806 0x3c, 0x3c, 0x3c, 0x3c, 0x3b,
807 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
808 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
809 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
810 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
811 0x3b, 0x3b, 0x3c, 0x3c, 0x3c,
812 0x3c, 0x3c, 0x3c, 0x3c, 0x3c
816 253, 222, 119, 186, 244,
817 146, 32, 160, 236, 237,
818 238, 240, 241, 241, 242,
819 243, 244, 243, 244, 245,
820 244, 244, 245, 245, 245,
821 246, 246, 247, 247, 247,
822 247, 248, 246, 247, 249,
823 247, 248, 247, 248, 247,
824 248, 247, 248, 247, 248,
825 248, 246, 248, 247, 248,
870 for (i = 0; i <
IN_END; i += 2)
872 compressed[i / 2] =
encode (test_data[i], test_data[i + 1]);
874 for (i = 0; i <
IN_END; i += 2)
876 decode (compressed[i / 2]);
878 result[i + 1] =
xout2;
890 for (i = 0; i <
IN_END / 2; i++)
892 if (compressed[i] != test_compressed[i])
897 for (i = 0; i <
IN_END; i++)
899 if (result[i] != test_result[i])
904 printf (
"%d\n", main_result);
int __attribute__((noinline))
int scalel(int nbl, int shift_constant)
int uppol1(int al1, int apl2, int plt, int plt1)
void upzero(int dlt, int *dlti, int *bli)
const int quant26bt_pos[31]
const int qq4_code4_table[16]
int filtez(int *bpl, int *dlt)
const int qq2_code2_table[4]
const int test_data[SIZE]
const int test_result[SIZE]
int uppol2(int al1, int al2, int plt, int plt1, int plt2)
int logscl(int il, int nbl)
const int test_compressed[SIZE]
int quantl(int el, int detl)
int logsch(int ih, int nbh)
const int quant26bt_neg[31]
const int qq6_code6_table[64]
int filtep(int rlt1, int al1, int rlt2, int al2)
const int wl_code_table[16]
const int wh_code_table[4]