/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
H A D | TJScalingFactor.java | 37 public TJScalingFactor(int num, int denom) { argument 38 if (num < 1 || denom < 1) 41 this.denom = denom; 59 return denom; 70 return (dimension * num + denom - 1) / denom; 81 return this.num == other.num && this.denom == other.denom; 92 return num == 1 && denom 103 private int denom = 1; field in class:TJScalingFactor [all...] |
/external/clang/test/CodeGen/ |
H A D | uint128_t.c | 5 extern uint64_t denom; 14 tmp /= denom;
|
/external/skia/include/core/ |
H A D | SkMath.h | 44 * Computes numer1 * numer2 / denom in full 64 intermediate precision. 45 * It is an error for denom to be 0. There is no special handling if 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 49 SkASSERT(denom); 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; 123 * Stores numer/denom and numer%denom into div and mod respectively. 126 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { argument 134 const In d = numer/denom; 136 *mod = static_cast<Out>(numer-d*denom); [all...] |
/external/skqp/include/core/ |
H A D | SkMath.h | 44 * Computes numer1 * numer2 / denom in full 64 intermediate precision. 45 * It is an error for denom to be 0. There is no special handling if 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 49 SkASSERT(denom); 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; 123 * Stores numer/denom and numer%denom into div and mod respectively. 126 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { argument 134 const In d = numer/denom; 136 *mod = static_cast<Out>(numer-d*denom); [all...] |
/external/aac/libSBRenc/src/ |
H A D | sbr_misc.cpp | 233 return: num*scale/denom 236 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, argument 242 INT shiftDenom = CountLeadingBits(denom); 250 if (denom > (tmp >> fixMin(shiftNum + shiftScale - 1, (DFRACT_BITS - 1)))) { 251 denom = denom << shiftDenom; 252 tmp = schur_div(tmp, denom, 15);
|
H A D | sbr_misc.h | 124 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom,
|
/external/tensorflow/tensorflow/contrib/signal/python/ops/ |
H A D | spectral_ops.py | 143 denom = math_ops.square(forward_window) 145 denom = array_ops.pad(denom, [(0, overlaps * frame_step - frame_length)]) 146 denom = array_ops.reshape(denom, [overlaps, frame_step]) 147 denom = math_ops.reduce_sum(denom, 0, keepdims=True) 148 denom = array_ops.tile(denom, [overlaps, 1]) 149 denom [all...] |
/external/mesa3d/src/compiler/nir/ |
H A D | nir_lower_idiv.c | 42 nir_ssa_def *numer, *denom, *af, *bf, *a, *b, *q, *r; local 56 denom = nir_ssa_for_alu_src(bld, alu, 1); 60 bf = nir_i2f(bld, denom); 64 b = nir_iabs(bld, denom); 67 bf = nir_u2f(bld, denom); 69 b = denom; 103 r = nir_ixor(bld, numer, denom);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | smooth.c | 36 int32_t B_W32, denom, num; local 137 /* denom is in Q16 */ 138 denom = WebRtcSpl_DivW32W16(endiff, (int16_t)(w00w00 >> 16)); 140 denom = 65536; 143 if( denom > 7){ /* eliminates numerical problems 146 scale=WebRtcSpl_GetSizeInBits(denom)-15; 150 denomW16 = (int16_t)(denom >> scale); 156 denomW16=(int16_t)denom;
|
/external/harfbuzz_ng/src/ |
H A D | hb-ot-var-avar-table.hh | 82 int denom = array[i].fromCoord - array[i-1].fromCoord; local 85 (value - array[i-1].fromCoord) + denom/2) / denom;
|
/external/webrtc/webrtc/system_wrappers/source/ |
H A D | tick_util.cc | 36 timebase_from_millisecond_fract = (timebase.denom * 1e6) / timebase.numer; 55 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e6); 74 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e3);
|
/external/compiler-rt/test/builtins/timing/ |
H A D | timing.h | 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
H A D | frame_dropper.cc | 195 float denom = 1.0f - _dropRatio.filtered(); 196 if (denom < 1e-5) { 197 denom = 1e-5f; 199 int32_t limit = static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f); 228 float denom = _dropRatio.filtered(); 229 if (denom < 1e-5) { 230 denom = 1e-5f; 232 int32_t limit = -static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f);
|
/external/adhd/cras/src/server/ |
H A D | rate_estimator.c | 29 double num, denom; local 31 denom = lsq->num_samples * lsq->sum_x2 - lsq->sum_x * lsq->sum_x; 32 return num / denom;
|
/external/libvncserver/common/ |
H A D | turbojpeg.h | 267 int denom; member in struct:__anon12593 288 + scalingFactor.denom - 1) / scalingFactor.denom)
|
/external/libyuv/files/unit_test/ |
H A D | scale_argb_test.cc | 231 #define DX(x, nom, denom) static_cast<int>((Abs(x) / nom) * nom) 232 #define SX(x, nom, denom) static_cast<int>((x / nom) * denom) 234 #define TEST_FACTOR1(name, filter, nom, denom, max_diff) \ 237 SX(benchmark_width_, nom, denom), SX(benchmark_height_, nom, denom), \ 238 DX(benchmark_width_, nom, denom), DX(benchmark_height_, nom, denom), \ 245 SX(benchmark_width_, nom, denom), SX(benchmark_height_, nom, denom), \ [all...] |
H A D | scale_test.cc | 284 #define DX(x, nom, denom) static_cast<int>(((Abs(x) / nom + 1) / 2) * nom * 2) 285 #define SX(x, nom, denom) static_cast<int>(((x / nom + 1) / 2) * denom * 2) 287 #define TEST_FACTOR1(name, filter, nom, denom, max_diff) \ 290 SX(benchmark_width_, nom, denom), SX(benchmark_height_, nom, denom), \ 291 DX(benchmark_width_, nom, denom), DX(benchmark_height_, nom, denom), \ 298 SX(benchmark_width_, nom, denom), SX(benchmark_height_, nom, denom), \ [all...] |
/external/libcups/cups/ |
H A D | pwg-media.c | 40 static int pwg_scan_measurement(const char *buf, char **bufptr, int numer, int denom); 680 denom; /* ... */ local 690 denom = 72; 697 denom = 1; 722 denom = 1; 727 denom = 1; 732 denom = 1; 737 denom = 1; 742 denom = 1; 747 denom 1135 pwg_scan_measurement( const char *buf, char **bufptr, int numer, int denom) argument [all...] |
/external/webrtc/webrtc/modules/audio_processing/aec/ |
H A D | aec_resampler.c | 155 float denom = 0; local 201 denom = x2 - xAvg * x; 203 if (denom != 0) { 204 skew = (xy - xAvg * y) / denom;
|
/external/compiler-rt/test/tsan/ |
H A D | test.h | 60 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info); 61 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom;
|
/external/skia/src/pathops/ |
H A D | SkPathOpsLine.cpp | 38 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 41 if (!between(0, numer, denom)) { 44 if (!denom) { 47 double t = numer / denom; 68 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 71 double t = numer / denom;
|
H A D | SkPathOpsQuad.cpp | 24 double denom = dot00 * dot11 - dot01 * dot01; local 28 if (denom >= 0) { 29 return u >= 0 && v >= 0 && u + v < denom; 31 return u <= 0 && v <= 0 && u + v > denom; 348 static int valid_unit_divide(double numer, double denom, double* ratio) argument 352 denom = -denom; 354 if (denom == 0 || numer == 0 || numer >= denom) { 357 double r = numer / denom; [all...] |
H A D | SkDLineIntersection.cpp | 43 /* Slopes match when denom goes to zero: 47 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 49 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local 51 if (!approximately_zero(denom)) { 55 numerA /= denom; 56 numerB /= denom; 101 /* Slopes match when denom goes to zero: 105 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 118 double denom = axByLen - ayBxLen; local 119 if (between(0, numerA, denom) [all...] |
/external/skqp/src/pathops/ |
H A D | SkPathOpsLine.cpp | 38 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 41 if (!between(0, numer, denom)) { 44 if (!denom) { 47 double t = numer / denom; 68 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 71 double t = numer / denom;
|
H A D | SkDLineIntersection.cpp | 43 /* Slopes match when denom goes to zero: 47 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 49 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local 51 if (!approximately_zero(denom)) { 55 numerA /= denom; 56 numerB /= denom; 101 /* Slopes match when denom goes to zero: 105 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 118 double denom = axByLen - ayBxLen; local 119 if (between(0, numerA, denom) [all...] |