Lines Matching refs:exp
7 /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/rpe.c,v 1.3 1994/05/10 20:18:46 jutta Exp $ */
228 word exp, mant;
233 exp = 0;
234 if (xmaxc > 15) exp = SASR(xmaxc, 3) - 1;
235 mant = xmaxc - (exp << 3);
238 exp = -4;
244 exp--;
249 assert( exp >= -4 && exp <= 6 );
252 *exp_out = exp;
268 word exp, mant;
284 exp = 0;
293 assert(exp <= 5);
294 if (itest == 0) exp++; /* exp = add (exp, 1) */
297 assert(exp <= 6 && exp >= 0);
298 temp = exp + 5;
301 xmaxc = gsm_add( SASR(xmax, temp), exp << 3 );
307 APCM_quantization_xmaxc_to_exp_mant( xmaxc, &exp, &mant );
323 assert( exp <= 4096 && exp >= -4096);
326 temp1 = 6 - exp; /* normalization by the exponent */
343 *exp_out = exp;
349 static void APCM_inverse_quantization P4((xMc,mant,exp,xMp),
352 word exp,
367 temp2 = gsm_sub( 6, exp ); /* see 4.2-15 for exp */
460 word mant, exp;
465 APCM_quantization( xM, xMc, &mant, &exp, xmaxc);
466 APCM_inverse_quantization( xMc, mant, exp, xMp);
481 word exp, mant;
484 APCM_quantization_xmaxc_to_exp_mant( xmaxcr, &exp, &mant );
485 APCM_inverse_quantization( xMcr, mant, exp, xMp );