@@ -33,7 +33,7 @@ const unsigned int PUNCTURE_LIST_LINK_SETUP[] = {
33
33
362U , 369U , 372U , 375U , 378U , 385U , 388U , 391U , 394U , 401U , 404U , 407U , 410U , 417U , 420U , 423U , 430U , 433U , 436U , 439U , 446U ,
34
34
449U , 452U , 455U , 462U , 465U , 468U , 471U , 478U , 481U , 484U };
35
35
36
- const unsigned int PUNCTURE_LIST_DATA_COUNT = 22U ;
36
+ const unsigned int PUNCTURE_LIST_DATA_COUNT = 12U ;
37
37
38
38
const unsigned int PUNCTURE_LIST_DATA[] = {
39
39
11U , 23U , 35U , 47U , 59U , 71U , 83U , 95U , 107U , 119U , 131U , 143U , 155U , 167U , 179U , 191U , 203U , 215U , 227U , 239U , 251U , 263U ,
@@ -128,6 +128,7 @@ unsigned int CM17Convolution::decodeLinkSetup(const unsigned char* in, unsigned
128
128
assert (out != NULL );
129
129
130
130
uint8_t temp[500U ];
131
+ ::memset (temp, 0x00U , 500U );
131
132
132
133
unsigned int n = 0U ;
133
134
unsigned int index = 0U ;
@@ -141,9 +142,6 @@ unsigned int CM17Convolution::decodeLinkSetup(const unsigned char* in, unsigned
141
142
temp[n++] = b ? 2U : 0U ;
142
143
}
143
144
144
- for (unsigned int i = 0U ; i < 8U ; i++)
145
- temp[n++] = 0U ;
146
-
147
145
start ();
148
146
149
147
n = 0U ;
@@ -154,15 +152,16 @@ unsigned int CM17Convolution::decodeLinkSetup(const unsigned char* in, unsigned
154
152
decode (s0, s1);
155
153
}
156
154
157
- return chainback (out, 144U ) - PUNCTURE_LIST_LINK_SETUP_COUNT;
155
+ return chainback (out, 240U ) - PUNCTURE_LIST_LINK_SETUP_COUNT;
158
156
}
159
157
160
158
unsigned int CM17Convolution::decodeData (const unsigned char * in, unsigned char * out)
161
159
{
162
160
assert (in != NULL );
163
161
assert (out != NULL );
164
162
165
- uint8_t temp[350U ];
163
+ uint8_t temp[300U ];
164
+ ::memset (temp, 0x00U , 300U );
166
165
167
166
unsigned int n = 0U ;
168
167
unsigned int index = 0U ;
@@ -176,20 +175,17 @@ unsigned int CM17Convolution::decodeData(const unsigned char* in, unsigned char*
176
175
temp[n++] = b ? 2U : 0U ;
177
176
}
178
177
179
- for (unsigned int i = 0U ; i < 8U ; i++)
180
- temp[n++] = 0U ;
181
-
182
178
start ();
183
179
184
180
n = 0U ;
185
- for (unsigned int i = 0U ; i < 164U ; i++) {
181
+ for (unsigned int i = 0U ; i < 148U ; i++) {
186
182
uint8_t s0 = temp[n++];
187
183
uint8_t s1 = temp[n++];
188
184
189
185
decode (s0, s1);
190
186
}
191
187
192
- return chainback (out, 160U ) - PUNCTURE_LIST_DATA_COUNT;
188
+ return chainback (out, 144U ) - PUNCTURE_LIST_DATA_COUNT;
193
189
}
194
190
195
191
void CM17Convolution::start ()
0 commit comments