/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
d_gain_c.cpp | 199 Word16 gcode0, exp, frac; local 212 * gc0 = Pow2(int(d)+frac(d)) * 213 * = 2^exp + 2^frac * 217 gc_pred(pred_state, mode, code, &exp, &frac, 229 gcode0 = (Word16)(Pow2(exp, frac, pOverflow)); /* predicted gain */ 235 gcode0 = (Word16)(Pow2(14, frac, pOverflow));
|
dec_gain.cpp | 193 Word16 frac; local 242 Log2(temp1, &exp, &frac, pOverflow); 245 temp1 = shr_r(frac, 5, pOverflow); 250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); 269 * gc0 = Pow2(int(d)+frac(d)) * 270 * = 2^exp + 2^frac * 272 * gcode0 (Q14) = 2^14*2^frac = gc0 * 2^(14-exp) * 275 gc_pred(pred_state, mode, code, &exp, &frac, NULL, NULL, pOverflow); 277 gcode0 = (Word16) Pow2(14, frac, pOverflow);
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
decim54.c | 96 Word32 i, j, frac, pos; local 104 frac = pos & 3; /* fractional part */ 106 y = (Word16 *)(fir_down1 + frac);
|
q_gain2.c | 79 Word16 exp, frac, gcode0, exp_gcode0, e_max, exp_code, qua_ener; local 184 Log2(L_tmp, &exp, &frac); 186 L_tmp = Mpy_32_16(exp, frac, -24660); /* x -3.0103(Q13) -> Q14 */ 210 VO_L_Extract(L_tmp, &exp_gcode0, &frac); /* Extract exponent of gcode0 */ 212 gcode0 = (Word16)(Pow2(14, frac)); /* Put 14 as exponent so that */ 328 Log2(L_tmp, &exp, &frac); 330 L_tmp = Mpy_32_16(exp, frac, 24660); /* x 6.0206 in Q12 */
|
/bootable/recovery/ |
verifier.c | 148 double frac = -1.0; local 162 if (f > frac + 0.02 || size == so_far) { 164 frac = f;
|
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
calc_en.cpp | 483 Word16 i, exp, frac; 545 frac = extract_h(L_shl(s, exp)); 549 if (frac <= 0) 558 = (frac>>1)/frac[2] * 2^(exp+1-exp[2]) 559 = div_s(frac>>1, frac[2])*2^-15 * 2^(exp+1-exp[2]) 562 *cod_gain_frac = div_s (shr (frac,1), frac_coeff[2]); 613 Word16 frac; /* fractional part */ local 678 frac = (Word16)(L_shl(s1, exp, pOverflow) >> 16) [all...] |
qgain475.cpp | 410 Word16 g_code, exp, frac, tmp; 439 Log2 (L_deposit_l (g_code), &exp, &frac); // Log2(x Q12) = log2(x) + 12 442 tmp = shr_r (frac, 5); 445 L_tmp = Mpy_32_16(exp, frac, 24660); // 24660 Q12 ~= 6.0206 = 20*log10(2) 486 Word16 frac; local 519 Log2((Word32) g_code, &exp, &frac, pOverflow); 522 tmp = shr_r(frac, 5, pOverflow); 527 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); 595 Word16 tmp, exp, frac; 619 // with normalized frac, i.e. 16384 <= frac <= 3276 704 Word16 frac; local [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
gc_pred.cpp | 275 Word16 exp, frac; 303 Log2(ener_code, &exp, &frac); 304 ener_code = L_Comp (sub (exp, 30), frac); // Q16 for log() 328 * = Pow2(int(d)+frac(d)) * 330 * (store exp and frac for pow2()) * 349 Log2_norm (ener_code, exp_code, &exp, &frac); 352 L_tmp = Mpy_32_16(exp, frac, -24660); // Q0.Q15 * Q13 -> Q14 485 Word16 exp, frac; local 534 Log2(ener_code, &exp, &frac, pOverflow); 540 ener_code = L_temp1 + ((Word32)frac << 1) [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
oversamp_12k8_to_16k.cpp | 243 int16 frac; local 246 frac = 1; 251 frac--; 252 if (frac) 255 fir_up[(FAC5-1) - frac], 261 frac = FAC5; 272 /* Fractional interpolation of signal at position (frac/resol) */
|
dec_gain2_amr_wb.cpp | 187 int16 i, tmp, exp, frac, gcode0, exp_gcode0, qua_ener, gcode_inov; local 318 int32_to_dpf(L_tmp, &exp_gcode0, &frac); /* Extract exponant of gcode0 */ 320 gcode0 = (int16)(power_of_2(14, frac)); /* Put 14 as exponant so that */ 377 int32_to_dpf(*gain_cod, &exp, &frac); 378 L_tmp = mul_32by16(exp, frac, gcode_inov); 393 amrwb_log_2(L_tmp, &exp, &frac); 395 L_tmp = mul_32by16(exp, frac, 24660); /* x 6.0206 in Q12 */
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DERGeneralizedTime.java | 257 String frac = d.substring(14); local 259 for (index = 1; index < frac.length(); index++) 261 char ch = frac.charAt(index); 270 frac = frac.substring(0, 4) + frac.substring(index); 271 d = d.substring(0, 14) + frac; 275 frac = frac.substring(0, index) + "00" + frac.substring(index) [all...] |
/external/quake/quake/src/QW/client/ |
gl_rmisc.c | 246 unsigned frac, fracstep; local 347 frac = fracstep >> 1; 350 out2[j] = translate[inrow[frac>>16]]; 351 frac += fracstep; 352 out2[j+1] = translate[inrow[frac>>16]]; 353 frac += fracstep; 354 out2[j+2] = translate[inrow[frac>>16]]; 355 frac += fracstep; 356 out2[j+3] = translate[inrow[frac>>16]]; 357 frac += fracstep [all...] |
pmovetst.c | 181 float frac;
local 237 frac = (t1 + DIST_EPSILON)/(t1-t2);
239 frac = (t1 - DIST_EPSILON)/(t1-t2);
240 if (frac < 0)
241 frac = 0;
242 if (frac > 1)
243 frac = 1;
245 midf = p1f + (p2f - p1f)*frac;
247 mid[i] = p1[i] + frac*(p2[i] - p1[i]);
289 frac -= 0.1; [all...] |
r_light.c | 144 float front, back, frac; local 170 frac = front / (front-back); 171 mid[0] = start[0] + (end[0] - start[0])*frac; 172 mid[1] = start[1] + (end[1] - start[1])*frac; 173 mid[2] = start[2] + (end[2] - start[2])*frac;
|
gl_rlight.c | 270 float front, back, frac; local 296 frac = front / (front-back); 297 mid[0] = start[0] + (end[0] - start[0])*frac; 298 mid[1] = start[1] + (end[1] - start[1])*frac; 299 mid[2] = start[2] + (end[2] - start[2])*frac;
|
r_sprite.c | 62 float frac, clipdist, *pclipnormal; local 113 frac = dists[i] / (dists[i] - dists[i+1]); 117 outstep[0] = instep[0] + frac*(vert2[0] - instep[0]); 118 outstep[1] = instep[1] + frac*(vert2[1] - instep[1]); 119 outstep[2] = instep[2] + frac*(vert2[2] - instep[2]); 120 outstep[3] = instep[3] + frac*(vert2[3] - instep[3]); 121 outstep[4] = instep[4] + frac*(vert2[4] - instep[4]);
|
/external/quake/quake/src/WinQuake/ |
gl_rlight.cpp | 273 float front, back, frac;
local 299 frac = front / (front-back);
300 mid[0] = start[0] + (end[0] - start[0])*frac;
301 mid[1] = start[1] + (end[1] - start[1])*frac;
302 mid[2] = start[2] + (end[2] - start[2])*frac;
|
gl_rmisc.cpp | 254 unsigned frac, fracstep; local 345 frac = fracstep >> 1; 348 out2[j] = translate[inrow[frac>>16]]; 349 frac += fracstep; 350 out2[j+1] = translate[inrow[frac>>16]]; 351 frac += fracstep; 352 out2[j+2] = translate[inrow[frac>>16]]; 353 frac += fracstep; 354 out2[j+3] = translate[inrow[frac>>16]]; 355 frac += fracstep [all...] |
r_light.cpp | 144 float front, back, frac;
local 170 frac = front / (front-back);
171 mid[0] = start[0] + (end[0] - start[0])*frac;
172 mid[1] = start[1] + (end[1] - start[1])*frac;
173 mid[2] = start[2] + (end[2] - start[2])*frac;
|
cl_main.cpp | 393 float f, frac; local 408 frac = (cl.time - cl.mtime[1]) / f; 409 //Con_Printf ("frac: %f\n",frac); 410 if (frac < 0) 412 if (frac < -0.01) 416 // Con_Printf ("low frac\n"); 418 frac = 0; 420 else if (frac > 1) 422 if (frac > 1.01 446 float frac, f, d; local [all...] |
r_sprite.cpp | 62 float frac, clipdist, *pclipnormal;
local 113 frac = dists[i] / (dists[i] - dists[i+1]);
117 outstep[0] = instep[0] + frac*(vert2[0] - instep[0]);
118 outstep[1] = instep[1] + frac*(vert2[1] - instep[1]);
119 outstep[2] = instep[2] + frac*(vert2[2] - instep[2]);
120 outstep[3] = instep[3] + frac*(vert2[3] - instep[3]);
121 outstep[4] = instep[4] + frac*(vert2[4] - instep[4]);
|
/external/webkit/Source/WebCore/svg/ |
SVGParserUtilities.cpp | 48 FloatType integer, decimal, frac, exponent; local 54 frac = 1; 96 decimal += (*(ptr++) - '0') * (frac *= static_cast<FloatType>(0.1));
|
/external/webrtc/src/common_audio/vad/main/source/ |
vad_filterbank.c | 212 WebRtc_Word16 zeros, frac, log2; local 233 frac = (WebRtc_Word16)(((WebRtc_UWord32)((WebRtc_Word32)(enerSum) << zeros) 235 log2 = (WebRtc_Word16)(((31 - zeros) << 10) + frac);
|
/external/skia/src/core/ |
SkString.cpp | 158 unsigned frac = x & 0xFFFF; local 160 if (frac == 0xFFFF) { 163 frac = 0; 168 if (frac) { 172 x = SkFixedRound(frac * 10000);
|
/external/speex/libspeex/ |
math_approx.h | 253 spx_word16_t frac; local 259 frac = SHL16(x-SHL16(integer,11),3); 260 frac = ADD16(D0, MULT16_16_Q14(frac, ADD16(D1, MULT16_16_Q14(frac, ADD16(D2 , MULT16_16_Q14(D3,frac)))))); 261 return VSHR32(EXTEND32(frac), -integer-2);
|