Lines Matching defs:bits
52 * Calculates the CRC-8 of the first len bits in data
63 uint8_t bits = data[byte_length];
65 int8_t mask = bits ^ crc;
67 bits <<= 1;
75 * Code straight from the spec to calculate the bits array
76 * Takes a pointer to the frame in question and a pointer to the bits array
78 void ff_sbc_calculate_bits(const struct sbc_frame *frame, int (*bits)[8])
136 bits[ch][sb] = 0;
138 bits[ch][sb] = bitneed[ch][sb] - bitslice;
139 if (bits[ch][sb] > 16)
140 bits[ch][sb] = 16;
146 if ((bits[ch][sb] >= 2) && (bits[ch][sb] < 16)) {
147 bits[ch][sb]++;
150 bits[ch][sb] = 2;
157 if (bits[ch][sb] < 16) {
158 bits[ch][sb]++;
224 bits[ch][sb] = 0;
226 bits[ch][sb] = bitneed[ch][sb] - bitslice;
227 if (bits[ch][sb] > 16)
228 bits[ch][sb] = 16;
236 if ((bits[ch][sb] >= 2) && (bits[ch][sb] < 16)) {
237 bits[ch][sb]++;
240 bits[ch][sb] = 2;
255 if (bits[ch][sb] < 16) {
256 bits[ch][sb]++;