HomeSort by relevance Sort by last modified time
    Searched full:frac (Results 1 - 25 of 120) sorted by null

1 2 3 4 5

  /external/speex/libspeex/
resample.c 239 float y, frac; local
244 frac = (y-ind);
246 interp[3] = -0.1666666667*frac + 0.1666666667*(frac*frac*frac);
247 interp[2] = frac + 0.5*(frac*frac) - 0.5*(frac*frac*frac)
447 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); local
449 const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))\/st->den_rate; local
509 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); local
511 const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))\/st->den_rate; local
    [all...]
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);
resample_sse.h 57 static inline float interpolate_product_single(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) {
61 __m128 f = _mm_loadu_ps(frac);
100 static inline double interpolate_product_double(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) {
106 __m128 f = _mm_loadu_ps(frac);
  /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_draw.c 1015 unsigned frac, fracstep; local
1021 frac = fracstep >> 1;
1024 out[j] = inrow[frac>>16];
1025 frac += fracstep;
1026 out[j+1] = inrow[frac>>16];
1027 frac += fracstep;
1028 out[j+2] = inrow[frac>>16];
1029 frac += fracstep;
1030 out[j+3] = inrow[frac>>16];
1031 frac += fracstep
1045 unsigned frac, fracstep; local
    [all...]
  /external/quake/quake/src/WinQuake/
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...]
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_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;
  /external/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/
pred_lt.cpp 140 frac = fraction of lag (Word16)
187 Word16 frac, // input : fraction of lag
199 frac = negate (frac);
202 frac = shl (frac, 1); // inter_3l[k] = inter_6[2*k] -> k' = 2*k
205 if (frac < 0)
207 frac = add (frac, UP_SAMP_MAX);
215 pC1 = &inter_6[frac];
    [all...]
  /frameworks/base/media/libstagefright/codecs/amrnb/common/src/
pred_lt.cpp 140 frac = fraction of lag (Word16)
187 Word16 frac, // input : fraction of lag
199 frac = negate (frac);
202 frac = shl (frac, 1); // inter_3l[k] = inter_6[2*k] -> k' = 2*k
205 if (frac < 0)
207 frac = add (frac, UP_SAMP_MAX);
215 pC1 = &inter_6[frac];
    [all...]
  /dalvik/dx/tests/089-dex-define-object/
Object.java 49 public final native void wait(long time, int frac);
  /external/opencore/codecs_v2/audio/gsm_amr/amr_wb/dec/src/
pvamrwb_math_op.cpp 52 int32 frac, int16 exp : L_32 = frac << exp-31 (normalised format)
53 int16 int, frac : L_32 = int.frac (fractional format)
300 if value is negative or zero, result is 1 (frac=7fffffff, exp=0).
324 int32 * frac, /* (i/o) Q31: normalized value (1.0 < frac <= 0.5) */
325 int16 * exp /* (i/o) : exponent (value = frac x 2^exponent) */
331 if (*frac <= (int32) 0)
334 *frac = 0x7fffffffL
    [all...]
  /frameworks/base/media/libstagefright/codecs/amrwb/src/
pvamrwb_math_op.cpp 52 int32 frac, int16 exp : L_32 = frac << exp-31 (normalised format)
53 int16 int, frac : L_32 = int.frac (fractional format)
300 if value is negative or zero, result is 1 (frac=7fffffff, exp=0).
324 int32 * frac, /* (i/o) Q31: normalized value (1.0 < frac <= 0.5) */
325 int16 * exp /* (i/o) : exponent (value = frac x 2^exponent) */
331 if (*frac <= (int32) 0)
334 *frac = 0x7fffffffL
    [all...]
  /external/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/
inter_36.cpp 106 frac = fraction (-2..2 for 3*, -3..3 for 6*) of type Word16
149 frac = shl (frac, 1); // inter_3[k] = inter_6[2*k] -> k' = 2*k
152 if (frac < 0)
154 frac = add (frac, UP_SAMP_MAX);
160 c1 = &inter_6[frac];
161 c2 = &inter_6[sub (UP_SAMP_MAX, frac)];
196 Word16 frac, /* i : fraction (-2..2 for 3*, -3..3 for 6*) */
214 frac <<= 1
    [all...]
pitch_fr.cpp 448 frac = pointer to starting point of search fractional pitch of type Word16
476 Starting point of the search is frac, end point is last_frac.
477 frac is overwritten with the fractional pitch.
494 Word16 *frac, // i/o : start point of search -
509 max = Interpol_3or6 (&corr[*lag], *frac, flag3); // function result
511 for (i = add (*frac, 1); i <= last_frac; i++) {
515 *frac = i;
522 if (sub (*frac, -3) == 0) {
523 *frac = 3;
530 if (sub (*frac, -2) == 0)
1385 Word16 frac; local
    [all...]
  /frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
inter_36.cpp 106 frac = fraction (-2..2 for 3*, -3..3 for 6*) of type Word16
149 frac = shl (frac, 1); // inter_3[k] = inter_6[2*k] -> k' = 2*k
152 if (frac < 0)
154 frac = add (frac, UP_SAMP_MAX);
160 c1 = &inter_6[frac];
161 c2 = &inter_6[sub (UP_SAMP_MAX, frac)];
196 Word16 frac, /* i : fraction (-2..2 for 3*, -3..3 for 6*) */
214 frac <<= 1
    [all...]
pitch_fr.cpp 449 frac = pointer to starting point of search fractional pitch of type Word16
477 Starting point of the search is frac, end point is last_frac.
478 frac is overwritten with the fractional pitch.
495 Word16 *frac, // i/o : start point of search -
510 max = Interpol_3or6 (&corr[*lag], *frac, flag3); // function result
512 for (i = add (*frac, 1); i <= last_frac; i++) {
516 *frac = i;
523 if (sub (*frac, -3) == 0) {
524 *frac = 3;
531 if (sub (*frac, -2) == 0)
1386 Word16 frac; local
    [all...]
  /build/tools/releasetools/
edify_generator.py 101 def ShowProgress(self, frac, dur):
102 """Update the progress bar, advancing it over 'frac' over the next
105 self.script.append("show_progress(%f, %d);" % (frac, int(dur)))
107 def SetProgress(self, frac):
109 by the most recent ShowProgress call. 'frac' should be in
111 self.script.append("set_progress(%f);" % (frac,))
  /bootable/recovery/
install.c 74 // progress <frac> <secs>
75 // fill up the next <frac> part of of the progress bar
80 // set_progress <frac>
81 // <frac> should be between 0.0 and 1.0; sets the
verifier.c 148 double frac = -1.0; local
162 if (f > frac + 0.02 || size == so_far) {
164 frac = f;
  /external/sonivox/arm-fm-22k/lib_src/
eas_math.h 42 where x is a int.frac number representing number of octaves.
43 Actually, we approximate only the 2^(frac) using the power series
45 2^x == 2^(int.frac) == 2^(int) * 2^(fract)
108 output = (1-frac) * sample[n] + (frac) * sample[n+1]
110 where conceptually 0 <= frac < 1
112 For a fixed point implementation, frac is actually an integer value
213 /* we coudl re-use the phase frac macros, but if we do,
299 /* drive coef is given as int.frac */
335 * nResult - int.frac result (where frac has NUM_DENTS_FRAC_BITS
    [all...]
  /external/sonivox/arm-hybrid-22k/lib_src/
eas_math.h 42 where x is a int.frac number representing number of octaves.
43 Actually, we approximate only the 2^(frac) using the power series
45 2^x == 2^(int.frac) == 2^(int) * 2^(fract)
108 output = (1-frac) * sample[n] + (frac) * sample[n+1]
110 where conceptually 0 <= frac < 1
112 For a fixed point implementation, frac is actually an integer value
213 /* we coudl re-use the phase frac macros, but if we do,
299 /* drive coef is given as int.frac */
335 * nResult - int.frac result (where frac has NUM_DENTS_FRAC_BITS
    [all...]
  /external/sonivox/arm-wt-22k/lib_src/
eas_math.h 42 where x is a int.frac number representing number of octaves.
43 Actually, we approximate only the 2^(frac) using the power series
45 2^x == 2^(int.frac) == 2^(int) * 2^(fract)
108 output = (1-frac) * sample[n] + (frac) * sample[n+1]
110 where conceptually 0 <= frac < 1
112 For a fixed point implementation, frac is actually an integer value
213 /* we coudl re-use the phase frac macros, but if we do,
299 /* drive coef is given as int.frac */
335 * nResult - int.frac result (where frac has NUM_DENTS_FRAC_BITS
    [all...]

Completed in 264 milliseconds

1 2 3 4 5