Home
last modified time | relevance | path

Searched refs:numer (Results 1 – 25 of 76) sorted by relevance

1234

/external/libcups/cups/
Dpwg-media.c40 static int pwg_scan_measurement(const char *buf, char **bufptr, int numer, int denom);
679 numer, /* Unit scaling factor */ in pwgMediaForPPD() local
689 numer = 2540; in pwgMediaForPPD()
696 numer = 2540; in pwgMediaForPPD()
721 numer = 1000; in pwgMediaForPPD()
726 numer = 2540 * 12; in pwgMediaForPPD()
731 numer = 2540; in pwgMediaForPPD()
736 numer = 100; in pwgMediaForPPD()
741 numer = 100000; in pwgMediaForPPD()
746 numer = 2540; in pwgMediaForPPD()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_lower_idiv.c42 nir_ssa_def *numer, *denom, *af, *bf, *a, *b, *q, *r; in convert_instr() local
55 numer = nir_ssa_for_alu_src(bld, alu, 0); in convert_instr()
59 af = nir_i2f32(bld, numer); in convert_instr()
63 a = nir_iabs(bld, numer); in convert_instr()
66 af = nir_u2f32(bld, numer); in convert_instr()
68 a = numer; in convert_instr()
103 r = nir_ixor(bld, numer, denom); in convert_instr()
/external/u-boot/lib/
Dldiv.c12 ldiv (long int numer, long int denom) in ldiv() argument
16 result.quot = numer / denom; in ldiv()
17 result.rem = numer % denom; in ldiv()
35 if (numer >= 0 && result.rem < 0) in ldiv()
/external/skia/tests/
DMathTest.cpp457 SkFixed numer = rand.nextS(); in DEF_TEST() local
459 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
460 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST()
462 (void)SkCLZ(numer); in DEF_TEST()
472 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST()
527 T numer; in test_divmod() member
541 const T numer = kEdgeCases[i].numer; in test_divmod() local
544 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
545 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
546 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()
[all …]
/external/skqp/tests/
DMathTest.cpp457 SkFixed numer = rand.nextS(); in DEF_TEST() local
459 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
460 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST()
462 (void)SkCLZ(numer); in DEF_TEST()
472 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST()
526 T numer; in test_divmod() member
540 const T numer = kEdgeCases[i].numer; in test_divmod() local
543 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
544 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
545 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()
[all …]
/external/skqp/src/core/
DSkMathPriv.h33 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument
41 const In d = numer/denom; in SkTDivMod()
43 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod()
46 *div = static_cast<Out>(numer/denom); in SkTDivMod()
47 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
DSkCubicMap.cpp68 float numer = 2 * fp * f; in solve_nice_cubic_halley() local
69 if (numer == 0) { in solve_nice_cubic_halley()
73 float delta = numer / denom; in solve_nice_cubic_halley()
113 float numer = 6 * f * fp2 - 3 * f2 * fpp; in solve_nice_cubic_householder() local
114 if (numer == 0) { in solve_nice_cubic_householder()
118 float delta = numer / denom; in solve_nice_cubic_householder()
DSkDrawShadowInfo.h37 static inline float divide_and_pin(float numer, float denom, float min, float max) { in divide_and_pin() argument
38 float result = SkTPin(sk_ieee_float_divide(numer, denom), min, max); in divide_and_pin()
DSkGeometry.cpp35 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide() argument
38 if (numer < 0) { in valid_unit_divide()
39 numer = -numer; in valid_unit_divide()
43 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide()
47 SkScalar r = numer / denom; in valid_unit_divide()
51 SkASSERTF(r >= 0 && r < SK_Scalar1, "numer %f, denom %f, r %f", numer, denom, r); in valid_unit_divide()
264 SkScalar numer = -(Ax * Bx + Ay * By); in SkFindQuadMaxCurvature() local
267 numer = -numer; in SkFindQuadMaxCurvature()
270 if (numer <= 0) { in SkFindQuadMaxCurvature()
273 if (numer >= denom) { // Also catches denom=0. in SkFindQuadMaxCurvature()
[all …]
/external/skia/src/core/
DSkMathPriv.h33 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument
41 const In d = numer/denom; in SkTDivMod()
43 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod()
46 *div = static_cast<Out>(numer/denom); in SkTDivMod()
47 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
DSkCubicMap.cpp68 float numer = 2 * fp * f; in solve_nice_cubic_halley() local
69 if (numer == 0) { in solve_nice_cubic_halley()
73 float delta = numer / denom; in solve_nice_cubic_halley()
113 float numer = 6 * f * fp2 - 3 * f2 * fpp; in solve_nice_cubic_householder() local
114 if (numer == 0) { in solve_nice_cubic_householder()
118 float delta = numer / denom; in solve_nice_cubic_householder()
DSkDrawShadowInfo.h37 static inline float divide_and_pin(float numer, float denom, float min, float max) { in divide_and_pin() argument
38 float result = SkTPin(sk_ieee_float_divide(numer, denom), min, max); in divide_and_pin()
DSkGeometry.cpp35 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide() argument
38 if (numer < 0) { in valid_unit_divide()
39 numer = -numer; in valid_unit_divide()
43 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide()
47 SkScalar r = numer / denom; in valid_unit_divide()
51 SkASSERTF(r >= 0 && r < SK_Scalar1, "numer %f, denom %f, r %f", numer, denom, r); in valid_unit_divide()
264 SkScalar numer = -(Ax * Bx + Ay * By); in SkFindQuadMaxCurvature() local
267 numer = -numer; in SkFindQuadMaxCurvature()
270 if (numer <= 0) { in SkFindQuadMaxCurvature()
273 if (numer >= denom) { // Also catches denom=0. in SkFindQuadMaxCurvature()
[all …]
/external/skqp/src/pathops/
DSkPathOpsLine.cpp40 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearPoint() local
41 if (!between(0, numer, denom)) { in nearPoint()
47 double t = numer / denom; in nearPoint()
70 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearRay() local
71 double t = numer / denom; in nearRay()
DSkPathOpsQuad.cpp355 static int valid_unit_divide(double numer, double denom, double* ratio) in valid_unit_divide() argument
357 if (numer < 0) { in valid_unit_divide()
358 numer = -numer; in valid_unit_divide()
361 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide()
364 double r = numer / denom; in valid_unit_divide()
/external/skia/src/pathops/
DSkPathOpsLine.cpp40 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearPoint() local
41 if (!between(0, numer, denom)) { in nearPoint()
47 double t = numer / denom; in nearPoint()
70 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearRay() local
71 double t = numer / denom; in nearRay()
DSkPathOpsQuad.cpp355 static int valid_unit_divide(double numer, double denom, double* ratio) in valid_unit_divide() argument
357 if (numer < 0) { in valid_unit_divide()
358 numer = -numer; in valid_unit_divide()
361 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide()
364 double r = numer / denom; in valid_unit_divide()
/external/webrtc/webrtc/system_wrappers/source/
Dtick_util.cc36 timebase_from_millisecond_fract = (timebase.denom * 1e6) / timebase.numer; in MillisecondsToTicks()
55 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e6); in TicksToMilliseconds()
74 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e3); in TicksToMicroseconds()
/external/skqp/include/private/
DSkFloatingPoint.h202 static inline float sk_ieee_float_divide(float numer, float denom) { in sk_ieee_float_divide() argument
203 return numer / denom; in sk_ieee_float_divide()
209 static inline double sk_ieee_double_divide(double numer, double denom) { in sk_ieee_double_divide() argument
210 return numer / denom; in sk_ieee_double_divide()
/external/skia/include/private/
DSkFloatingPoint.h206 static inline float sk_ieee_float_divide(float numer, float denom) { in sk_ieee_float_divide() argument
207 return numer / denom; in sk_ieee_float_divide()
213 static inline double sk_ieee_double_divide(double numer, double denom) { in sk_ieee_double_divide() argument
214 return numer / denom; in sk_ieee_double_divide()
/external/clang/test/CodeGen/
Duint128_t.c4 extern uint64_t numer;
13 tmp *= numer; in f()
/external/skia/src/effects/
DSkEmbossMask.cpp76 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() local
80 if (numer > 0) { // preflight when numer/denom will be <= 0 in Emboss()
82 SkFixed dot = numer / denom; in Emboss()
/external/skqp/src/effects/
DSkEmbossMask.cpp76 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() local
80 if (numer > 0) { // preflight when numer/denom will be <= 0 in Emboss()
82 SkFixed dot = numer / denom; in Emboss()
/external/libcxx/include/
Dcstdlib67 div_t div( int numer, int denom);
68 ldiv_t div( long numer, long denom);
69 lldiv_t div(long long numer, long long denom); // C++0X
70 ldiv_t ldiv( long numer, long denom);
71 lldiv_t lldiv(long long numer, long long denom); // C99
/external/tensorflow/tensorflow/contrib/rate/
Drate.py74 self.numer = self._add_variable(
138 state_ops.assign(self.numer, math_ops.subtract(values, self.prev_values))
144 return math_ops.div_no_nan(self.numer,

1234