Searched refs:smp (Results 1 – 3 of 3) sorted by relevance
51 double smp; in kst_float_to_q15_vector() local57 kst_aft_to_dbl(&smp, &(pSrcT[idx])); in kst_float_to_q15_vector()58 smp = smp * 32768.0; in kst_float_to_q15_vector()59 pDstT[idx] = ((smp < 32767.0) ? ((smp > -32768.0) ? ((int16_t)smp) : -32768) : 32767); in kst_float_to_q15_vector()
124 double smp; in kst_float_to_q15_vector() local129 kst_aft_to_dbl(&smp, &(pSrcT[idx])); in kst_float_to_q15_vector()130 smp = smp * 32768.0; in kst_float_to_q15_vector()131 pDstT[idx] = ((smp < 32767.0) ? in kst_float_to_q15_vector()132 ((smp > -32768.0) ? in kst_float_to_q15_vector()133 ((int16_t)smp) : -32768) : 32767); in kst_float_to_q15_vector()
768 int32_t smp = inBuffer->s16[i]; in visualizer_process() local769 if (smp < 0) smp = -smp - 1; /* take care to keep the max negative in range */ in visualizer_process()770 int32_t clz = __builtin_clz(smp); in visualizer_process()798 int32_t smp = inBuffer->s16[2 * in_idx] + inBuffer->s16[2 * in_idx + 1]; in visualizer_process() local799 smp = smp >> shift; in visualizer_process()800 buf[capt_idx] = ((uint8_t)smp)^0x80; in visualizer_process()