Lines Matching defs:pos
133 int i, wn, inc, pos;
145 pos = DEQUANT_PHASE(wave_param->phase_index) - (reg_offset ^ 128) * inc & 2047;
149 out[i] += sine_table[pos] * amp;
150 pos = (pos + inc) & 2047;
160 pos = (envelope->start_pos << 2) - reg_offset;
161 if (pos > 0 && pos <= 128) {
162 memset(out, 0, pos * sizeof(*out));
165 out[pos + 0] *= hann_window[0];
166 out[pos + 1] *= hann_window[32];
167 out[pos + 2] *= hann_window[64];
168 out[pos + 3] *= hann_window[96];
175 pos = (envelope->stop_pos + 1 << 2) - reg_offset;
176 if (pos > 0 && pos <= 128) {
177 out[pos - 4] *= hann_window[96];
178 out[pos - 3] *= hann_window[64];
179 out[pos - 2] *= hann_window[32];
180 out[pos - 1] *= hann_window[0];
181 memset(&out[pos], 0, (128 - pos) * sizeof(out[pos]));
626 hist->buf1[hist->pos][i] = idct_out[i + 8];
627 hist->buf2[hist->pos][i] = idct_out[7 - i];
630 pos_now = hist->pos;
645 hist->pos = mod23_lut[hist->pos]; // hist->pos = (hist->pos - 1) % 23;