• Home
  • Raw
  • Download

Lines Matching refs:expon

217 	int16_t	expon, mant ;  in APCM_quantization_xmaxc_to_exp_mant()  local
222 expon = 0 ; in APCM_quantization_xmaxc_to_exp_mant()
223 if (xmaxc > 15) expon = SASR_W (xmaxc, 3) - 1 ; in APCM_quantization_xmaxc_to_exp_mant()
224 mant = xmaxc - (expon << 3) ; in APCM_quantization_xmaxc_to_exp_mant()
227 { expon = -4 ; in APCM_quantization_xmaxc_to_exp_mant()
233 expon-- ; in APCM_quantization_xmaxc_to_exp_mant()
238 assert (expon >= -4 && expon <= 6) ; in APCM_quantization_xmaxc_to_exp_mant()
241 *expon_out = expon ; in APCM_quantization_xmaxc_to_exp_mant()
256 int16_t expon, mant ; in APCM_quantization() local
272 expon = 0 ; in APCM_quantization()
280 assert (expon <= 5) ; in APCM_quantization()
281 if (itest == 0) expon++ ; /* expon = add (expon, 1) */ in APCM_quantization()
284 assert (expon <= 6 && expon >= 0) ; in APCM_quantization()
285 temp = expon + 5 ; in APCM_quantization()
288 xmaxc = gsm_add (SASR_W (xmax, temp), (int16_t) (expon << 3)) ; in APCM_quantization()
294 APCM_quantization_xmaxc_to_exp_mant (xmaxc, &expon, &mant) ; in APCM_quantization()
310 assert (expon <= 4096 && expon >= -4096) ; in APCM_quantization()
313 temp1 = 6 - expon ; /* normalization by the expononent */ in APCM_quantization()
329 *expon_out = expon ; in APCM_quantization()
338 int16_t expon, in APCM_inverse_quantization() argument
352 temp2 = gsm_sub (6, expon) ; /* see 4.2-15 for exp */ in APCM_inverse_quantization()
435 int16_t mant, expon ; in Gsm_RPE_Encoding() local
440 APCM_quantization (xM, xMc, &mant, &expon, xmaxc) ; in Gsm_RPE_Encoding()
441 APCM_inverse_quantization (xMc, mant, expon, xMp) ; in Gsm_RPE_Encoding()
454 int16_t expon, mant ; in Gsm_RPE_Decoding() local
457 APCM_quantization_xmaxc_to_exp_mant (xmaxcr, &expon, &mant) ; in Gsm_RPE_Decoding()
458 APCM_inverse_quantization (xMcr, mant, expon, xMp) ; in Gsm_RPE_Decoding()