/frameworks/base/core/java/android/hardware/camera2/utils/ |
ParamsUtils.java | 139 int den = RATIONAL_DENOMINATOR; local 142 numF = value * den; 144 if ((numF > Integer.MIN_VALUE && numF < Integer.MAX_VALUE) || (den == 1)) { 148 den /= 10; 157 return new Rational(num, den);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
Fraction.java | 253 * @param den the denominator. 256 public Fraction(int num, int den) { 257 if (den == 0) { 259 LocalizedFormats.ZERO_DENOMINATOR_IN_FRACTION, num, den); 261 if (den < 0) { 262 if (num == Integer.MIN_VALUE || den == Integer.MIN_VALUE) { 264 LocalizedFormats.OVERFLOW_IN_FRACTION, num, den); 267 den = -den; 270 final int d = MathUtils.gcd(num, den); [all...] |
BigFraction.java | 112 * @param den the denominator, must not be {@code null}.. 115 public BigFraction(BigInteger num, BigInteger den) { 119 if (den == null) { 122 if (BigInteger.ZERO.equals(den)) { 131 final BigInteger gcd = num.gcd(den); 134 den = den.divide(gcd); 138 if (BigInteger.ZERO.compareTo(den) > 0) { 140 den = den.negate() 514 BigInteger den = null; local 1090 BigInteger den = null; local [all...] |
/frameworks/base/media/java/android/media/ |
Utils.java | 149 private static Rational scaleRatio(Rational ratio, int num, int den) { 150 int common = gcd(num, den); 152 den /= common; 155 (int)(ratio.getDenominator() * (double)den)); // saturate to int 158 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) { 159 if (num == den) { 163 scaleRatio(range.getLower(), num, den), 164 scaleRatio(range.getUpper(), num, den)); 173 static int divUp(int num, int den) { 174 return (num + den - 1) / den [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
DormandPrince853Integrator.java | 274 double den = error1 + 0.01 * error2; local 275 if (den <= 0.0) { 276 den = 1.0; 279 return FastMath.abs(h) * error1 / FastMath.sqrt(mainSetDimension * den);
|
/external/libcxx/test/std/utilities/ratio/ratio.ratio/ |
ratio.pass.cpp | 10 // test ratio: The static data members num and den shall have the common 19 static_assert((std::ratio<N, D>::den == eD), "");
|
/external/libopus/celt/ |
celt_lpc.h | 45 const opus_val16 *den,
|
rate.c | 160 opus_int32 den; local 198 den=((opus_int32)(2*N-1)<<9)-459; 199 qb = IMIN((num+(den>>1))/den, 57); 213 den = ((opus_int32)ndof<<9)-(N==2?512:487); 214 qb = IMIN((num+(den>>1))/den, (N==2?64:61)); 230 den = (ndof-1)<<BITRES; 231 qb = IMIN((num+(den>>1))/den, MAX_FINE_BITS) 432 int N0, N, den; local [all...] |
celt_lpc.c | 145 const opus_val16 *den, 158 sum -= MULT16_16(den[j],mem[j]); 177 rden[i] = den[ord-i-1]; 195 sum[1] = MAC16_16(sum[1], y[i+ord ], den[0]); 198 sum[2] = MAC16_16(sum[2], y[i+ord+1], den[0]); 199 sum[2] = MAC16_16(sum[2], y[i+ord ], den[1]); 203 sum[3] = MAC16_16(sum[3], y[i+ord+2], den[0]); 204 sum[3] = MAC16_16(sum[3], y[i+ord+1], den[1]); 205 sum[3] = MAC16_16(sum[3], y[i+ord ], den[2]);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/ratio/ratio.ratio/ |
ratio.pass.cpp | 10 // test ratio: The static data members num and den shall have thcommon 19 static_assert((std::ratio<N, D>::den == eD), "");
|
/ndk/tests/device/issue39680-chrono-resolution/jni/ |
issue39680-chrono-resolution.cpp | 49 cout << fixed << double(TT::num)/TT::den 55 cout << fixed << double(P::num)/P::den << " seconds" << endl;
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_binop.py | 33 def __init__(self, num=0L, den=1L): 34 """Constructor: Rat([num[, den]]). 39 if not isint(den): 40 raise TypeError, "Rat denominator must be int or long (%r)" % den 42 if den == 0: 44 g = gcd(den, num) 46 self.__den = long(den//g) 54 """Accessor function for read-only 'den' attribute of Rat.""" 56 den = property(_get_den, None) variable in class:Rat 71 """Convert a Rat to an int; self.den must be 1."" [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_binop.py | 33 def __init__(self, num=0L, den=1L): 34 """Constructor: Rat([num[, den]]). 39 if not isint(den): 40 raise TypeError, "Rat denominator must be int or long (%r)" % den 42 if den == 0: 44 g = gcd(den, num) 46 self.__den = long(den//g) 54 """Accessor function for read-only 'den' attribute of Rat.""" 56 den = property(_get_den, None) variable in class:Rat 71 """Convert a Rat to an int; self.den must be 1."" [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_binop.py | 33 def __init__(self, num=0L, den=1L): 34 """Constructor: Rat([num[, den]]). 39 if not isint(den): 40 raise TypeError, "Rat denominator must be int or long (%r)" % den 42 if den == 0: 44 g = gcd(den, num) 46 self.__den = long(den//g) 54 """Accessor function for read-only 'den' attribute of Rat.""" 56 den = property(_get_den, None) variable in class:Rat 71 """Convert a Rat to an int; self.den must be 1."" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_binop.py | 33 def __init__(self, num=0L, den=1L): 34 """Constructor: Rat([num[, den]]). 39 if not isint(den): 40 raise TypeError, "Rat denominator must be int or long (%r)" % den 42 if den == 0: 44 g = gcd(den, num) 46 self.__den = long(den//g) 54 """Accessor function for read-only 'den' attribute of Rat.""" 56 den = property(_get_den, None) variable in class:Rat 71 """Convert a Rat to an int; self.den must be 1."" [all...] |
/external/libvpx/libvpx/ |
ivfenc.c | 31 mem_put_le32(header + 16, cfg->g_timebase.den); // rate
|
/external/libvpx/libvpx/test/ |
altref_test.cc | 61 timebase.den, timebase.num, 0, 30);
|
/external/opencv3/modules/imgproc/src/opencl/ |
blend_linear.cl | 75 float den = w1 + w2 + 1e-5f; 85 dst[i] = convertToT(num / den);
|
/frameworks/base/core/java/android/util/ |
Rational.java | 339 double den = mDenominator; local 341 return num / den; 356 float den = mDenominator; local 358 return num / den; 558 * "<i>num</i>{@code /}<i>den</i>" or 559 * "<i>num</i>{@code :}<i>den</i>" {@code => new Rational(num, den);}, 560 * where <i>num</i> and <i>den</i> are string integers potentially
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
ivfenc.c | 31 mem_put_le32(header + 16, cfg->g_timebase.den); // rate
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
altref_test.cc | 61 timebase.den, timebase.num, 0, 30);
|
/ndk/sources/cxx-stl/stlport/src/ |
complex_trig.cpp | 113 _Tp den = ::cos(re2) + ::cosh(im2); local 114 return complex<_Tp>(::sin(re2) / den, ::sinh(im2) / den); 176 _Tp den = ::cosh(re2) + ::cos(im2); local 177 return complex<_Tp>(::sinh(re2) / den, ::sin(im2) / den);
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
BoundedRational.java | 191 final BigInteger den = r1.mDen.multiply(r2.mDen); local 193 return new BoundedRational(num,den).maybeReduce(); 214 final BigInteger den = r1.mDen.multiply(r2.mDen); local 215 return new BoundedRational(num,den).maybeReduce(); 611 BigInteger den = r.mDen; local 612 if (den.bitLength() > MAX_SIZE) { 615 while (!den.testBit(0)) { 617 den = den.shiftRight(1); 619 while (den.mod(BIG_FIVE).signum() == 0) [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
dsp_helper.cc | 190 // den = signal_points[0] - 2 * signal_points[1] + signal_points[2]; 193 int32_t den = signal_points[0] + (signal_points[1] * -2) + signal_points[2]; local 201 if (temp < -den * strt) { 204 if ((flag == fs_mult) || (temp > -den * lmt)) { 205 *peak_value = (den * kParabolaCoefficients[fit_index[fs_mult - flag]][1] 215 } else if (temp > -den * (strt + stp)) { 218 if ((flag == fs_mult) || (temp < -den * lmt)) { 220 den * kParabolaCoefficients[fit_index[fs_mult+flag]][1];
|
/external/fec/ |
decode_rs.c | 32 data_t u,q,tmp,num1,num2,den,discr_r; local 228 * inv(X(l))**(FCR-1) and den = lambda_pr(inv(X(l))) all in poly-form 237 den = 0; 242 den ^= ALPHA_TO[MODNN(lambda[i+1] + i * root[j])]; 245 if (den == 0) { 253 data[loc[j]-PAD] ^= ALPHA_TO[MODNN(INDEX_OF[num1] + INDEX_OF[num2] + NN - INDEX_OF[den])];
|