Lines Matching refs:frac
244 float y, frac; in compute_func() local
249 frac = (y-ind); in compute_func()
251 interp[3] = -0.1666666667*frac + 0.1666666667*(frac*frac*frac); in compute_func()
252 interp[2] = frac + 0.5*(frac*frac) - 0.5*(frac*frac*frac); in compute_func()
254 interp[0] = -0.3333333333*frac + 0.5*(frac*frac) - 0.1666666667*(frac*frac*frac); in compute_func()
320 static void cubic_coef(spx_word16_t frac, spx_word16_t interp[4]) in cubic_coef() argument
324 interp[0] = -0.16667f*frac + 0.16667f*frac*frac*frac; in cubic_coef()
325 interp[1] = frac + 0.5f*frac*frac - 0.5f*frac*frac*frac; in cubic_coef()
327 interp[3] = -0.33333f*frac + 0.5f*frac*frac - 0.16667f*frac*frac*frac; in cubic_coef()
458 …const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_r… in resampler_basic_interpolate_single() local
460 … const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; in resampler_basic_interpolate_single() local
477 cubic_coef(frac, interp); in resampler_basic_interpolate_single()
481 cubic_coef(frac, interp); in resampler_basic_interpolate_single()
521 …const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_r… in resampler_basic_interpolate_double() local
523 … const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; in resampler_basic_interpolate_double() local
540 cubic_coef(frac, interp); in resampler_basic_interpolate_double()
543 cubic_coef(frac, interp); in resampler_basic_interpolate_double()