123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #include "d2_9pf.h"
- const char d2_9pf_c_id[] = "@(#)$Id $" d2_9pf_h;
-
- #include "typedef.h"
- #include "basic_op.h"
- #include "count.h"
- #include "cnst.h"
- #define NB_PULSE 2
-
- #include "c2_9pf.tab"
- void decode_2i40_9bits(
- Word16 subNr,
- Word16 sign,
- Word16 index,
- Word16 cod[]
- )
- {
- Word16 i, j, k;
- Word16 pos[NB_PULSE];
-
-
- j = shr_ex((index & 64),6); logic16 ();
- i = index & 7; logic16 ();
- i = add_ex(i, shl_ex(i, 2));
- k = startPos[add_ex(shl_ex(j, 3), shl_ex(subNr, 1))];
- pos[0] = add_ex(i, k); move16 ();
- index = shr_ex(index, 3);
- i = index & 7; logic16 ();
- i = add_ex(i, shl_ex(i, 2));
- k = startPos[add_ex(add_ex(shl_ex(j, 3), shl_ex(subNr, 1)), 1)];
- pos[1] = add_ex(i, k); move16 ();
-
- for (i = 0; i < L_SUBFR; i++) {
- cod[i] = 0; move16 ();
- }
- for (j = 0; j < NB_PULSE; j++) {
- i = sign & 1; logic16 ();
- sign = shr_ex(sign, 1);
- test ();
- if (i != 0) {
- cod[pos[j]] = 8191; move16 ();
- } else {
- cod[pos[j]] = -8192; move16 ();
- }
- }
- return;
- }
|