Home
last modified time | relevance | path

Searched refs:numer (Results 1 - 25 of 54) sorted by relevance

123

/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_idiv.c45 nir_ssa_def *numer, nir_ssa_def *denom) in convert_instr()
55 af = nir_i2f32(bld, numer); in convert_instr()
59 a = nir_iabs(bld, numer); in convert_instr()
62 af = nir_u2f32(bld, numer); in convert_instr()
64 a = numer; in convert_instr()
102 r = nir_ixor(bld, numer, denom); in convert_instr()
109 q = nir_isub(bld, numer, q); in convert_instr()
124 emit_udiv(nir_builder *bld, nir_ssa_def *numer, nir_ssa_def *denom, bool modulo) in emit_udiv() argument
135 nir_ssa_def *quotient = nir_umul_high(bld, numer, rcp); in emit_udiv()
137 nir_ssa_def *remainder = nir_isub(bld, numer, num_s_remainde in emit_udiv()
44 convert_instr(nir_builder *bld, nir_op op, nir_ssa_def *numer, nir_ssa_def *denom) convert_instr() argument
161 emit_idiv(nir_builder *bld, nir_ssa_def *numer, nir_ssa_def *denom, nir_op op) emit_idiv() argument
186 convert_instr_precise(nir_builder *bld, nir_op op, nir_ssa_def *numer, nir_ssa_def *denom) convert_instr_precise() argument
196 convert_instr_small(nir_builder *b, nir_op op, nir_ssa_def *numer, nir_ssa_def *denom, const nir_lower_idiv_options *options) convert_instr_small() argument
241 nir_ssa_def *numer = nir_ssa_for_alu_src(b, alu, 0); lower_idiv() local
[all...]
/third_party/skia/tests/
H A DMathTest.cpp489 SkFixed numer = rand.nextS(); in DEF_TEST() local
491 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
492 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST()
494 (void)SkCLZ(numer); in DEF_TEST()
504 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8" PRIx64 "\n", numer, denom, in DEF_TEST()
560 T numer; in test_divmod() member
574 const T numer = kEdgeCases[i].numer; in test_divmod() local
577 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
578 REPORTER_ASSERT(r, numer/deno in test_divmod()
584 const T numer = (T)rand.nextS(); test_divmod() local
[all...]
H A DWangsFormulaTest.cpp71 const float numer = 4 * min_w * eps; in wangs_formula_conic_reference_impl() local
74 const float delta = sqrtf(numer / denom); in wangs_formula_conic_reference_impl()
434 Sk2d numer = eval(p2 - p1w * 2 + p0, (p1w - p0) * 2, p0, t); in DEF_TEST()
440 return numer / denom; in DEF_TEST()
/third_party/skia/src/core/
H A DSkMathPriv.h30 * Stores numer/denom and numer%denom into div and mod respectively.
33 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()
H A DSkCubicSolver.h54 float numer = 2 * fp * f; in cubic_solver() local
57 t -= numer / denom; in cubic_solver()
H A DSkDrawShadowInfo.h46 static inline float divide_and_pin(float numer, float denom, float min, float max) { in divide_and_pin() argument
47 float result = SkTPin(sk_ieee_float_divide(numer, denom), min, max); in divide_and_pin()
H A DSkGeometry.cpp39 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) { in valid_unit_divide() argument
42 if (numer < 0) { in valid_unit_divide()
43 numer = -numer; in valid_unit_divide()
47 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide()
51 SkScalar r = numer / denom; in valid_unit_divide()
55 SkASSERTF(r >= 0 && r < SK_Scalar1, "numer %f, denom %f, r %f", numer, denom, r); in valid_unit_divide()
56 if (r == 0) { // catch underflow if numer <<<< deno in valid_unit_divide()
[all...]
H A DSkColor.cpp29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { in ByteDivToScalar() argument
31 return SkIntToScalar(numer) / (int)denom; in ByteDivToScalar()
/third_party/skia/src/pathops/
H A 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()
H A 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()
365 if (r == 0) { // catch underflow if numer <<<< denom in valid_unit_divide()
/third_party/skia/src/effects/
H A 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()
/third_party/skia/include/private/
H A DSkFloatingPoint.h262 static inline float sk_ieee_float_divide(float numer, float denom) { in sk_ieee_float_divide() argument
263 return numer / denom; in sk_ieee_float_divide()
267 static inline double sk_ieee_double_divide(double numer, double denom) { in sk_ieee_double_divide() argument
268 return numer / denom; in sk_ieee_double_divide()
H A DSkFixed.h93 #define SkFixedDiv(numer, denom) \
94 SkToS32(SkTPin<int64_t>((SkLeftShift((int64_t)(numer), 16) / (denom)), SK_MinS32, SK_MaxS32))
/third_party/glfw/src/
H A Dwindow.c243 window->numer = GLFW_DONT_CARE; in glfwCreateWindow()
686 GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* handle, int numer, int denom) in glfwSetWindowAspectRatio() argument
688 assert(numer != 0); in glfwSetWindowAspectRatio()
696 if (numer != GLFW_DONT_CARE && denom != GLFW_DONT_CARE) in glfwSetWindowAspectRatio()
698 if (numer <= 0 || denom <= 0) in glfwSetWindowAspectRatio()
702 numer, denom); in glfwSetWindowAspectRatio()
707 window->numer = numer; in glfwSetWindowAspectRatio()
713 _glfw.platform.setWindowAspectRatio(window, numer, denom); in glfwSetWindowAspectRatio()
H A Dcocoa_time.c43 _glfw.timer.ns.frequency = (info.denom * 1e9) / info.numer; in _glfwPlatformInitTimer()
H A Dnull_window.c35 if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) in applySizeLimits()
37 const float ratio = (float) window->numer / (float) window->denom; in applySizeLimits()
/third_party/skia/third_party/externals/dawn/src/utils/
H A DOSXTimer.cpp61 mSecondCoeff = timebaseInfo.numer * (1.0 / 1000000000) / timebaseInfo.denom; in GetSecondCoeff()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dsystem_utils_apple.cpp56 double secondCoeff = timebaseInfo.numer * 1e-9 / timebaseInfo.denom; in GetCurrentSystemTime()
/third_party/nghttp2/lib/
H A Dsfparse.h146 * :member:`numer` contains numerator of the decimal value.
148 int64_t numer; member
/third_party/node/deps/nghttp2/lib/
H A Dsfparse.h146 * :member:`numer` contains numerator of the decimal value.
148 int64_t numer; member
/third_party/skia/src/gpu/tessellate/
H A DWangsFormula.h230 const float numer = sqrtf(dot(dp, dp)) * precision + rp_minus_1 * dw; in conic_pow2() local
233 // Number of segments = sqrt(numer / denom). in conic_pow2()
235 // If not, the number of segments is (tmax - tmin) / sqrt(denom / numer). in conic_pow2()
236 return numer / denom; in conic_pow2()
298 float numer = length(dp) * _precision_ + rp_minus_1 * dw; in as_sksl()
301 return numer/denom; in as_sksl()
/third_party/python/Python/
H A Dpytime.c1003 if (timebase.numer < 1 || timebase.denom < 1) { in py_mach_timebase_info()
1011 /* Check that timebase.numer and timebase.denom can be casted to in py_mach_timebase_info()
1015 static_assert(sizeof(timebase.numer) <= sizeof(_PyTime_t), in py_mach_timebase_info()
1016 "timebase.numer is larger than _PyTime_t"); in py_mach_timebase_info()
1030 if ((_PyTime_t)timebase.numer > _PyTime_MAX / (_PyTime_t)timebase.denom) { in py_mach_timebase_info()
1038 *pnumer = (_PyTime_t)timebase.numer; in py_mach_timebase_info()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkDeviceMemoryExternalMac.hpp47 double convert_ratio = (double)timebase.numer / (double)timebase.denom; in GetTime()
/third_party/curl/lib/
H A Dtimeval.c153 usecs *= timebase.numer; in Curl_now()
/third_party/vk-gl-cts/external/vulkan-docs/src/katex/contrib/
H A Drender-a11y-string.min.js1 !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("katex"));else if("function"==typeof define&&define.amd)define(["katex"],r);else{var t="object"==typeof exports?r(require("katex")):r(e.katex);for(var a in t)("object"==typeof exports?exports:e)[a]=t[a]}}("undefined"!=typeof self?self:this,function(e){return function(e){var r={};function t(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(a,o,function(r){return e[r]}.bind(null,o));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(r,t){r.exports=e},function(e,r,t){"use strict";t.r(r);var a=t(0),o=t.n(a),n={"(":"left parenthesis",")":"right parenthesis","[":"open bracket","]":"close bracket","\\{":"left brace","\\}":"right brace","\\lvert":"open vertical bar","\\rvert":"close vertical bar","|":"vertical bar","\\uparrow":"up arrow","\\Uparrow":"up arrow","\\downarrow":"down arrow","\\Downarrow":"down arrow","\\updownarrow":"up down arrow","\\leftarrow":"left arrow","\\Leftarrow":"left arrow","\\rightarrow":"right arrow","\\Rightarrow":"right arrow","\\langle":"open angle","\\rangle":"close angle","\\lfloor":"open floor","\\rfloor":"close floor","\\int":"integral","\\intop":"integral","\\lim":"limit","\\ln":"natural log","\\log":"log","\\sin":"sine","\\cos":"cosine","\\tan":"tangent","\\cot":"cotangent","\\sum":"sum","/":"slash",",":"comma",".":"point","-":"negative","+":"plus","~":"tilde",":":"colon","?":"question mark","'":"apostrophe","\\%":"percent"," ":"space","\\ ":"space","\\$":"dollar sign","\\angle":"angle","\\degree":"degree","\\circ":"circle","\\vec":"vector","\\triangle":"triangle","\\pi":"pi","\\prime":"prime","\\infty":"infinity","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\omega":"omega","\\theta":"theta","\\sigma":"sigma","\\lambda":"lambda","\\tau":"tau","\\Delta":"delta","\\delta":"delta","\\mu":"mu","\\rho":"rho","\\nabla":"del","\\ell":"ell","\\ldots":"dots","\\hat":"hat","\\acute":"acute"},s={prime:"prime",degree:"degrees",circle:"degrees",2:"squared",3:"cubed"},i={"|":"open vertical bar",".":""},l={"|":"close vertical bar",".":""},c={"+":"plus","-":"minus","\\pm":"plus minus","\\cdot":"dot","*":"times","/":"divided by","\\times":"times","\\div":"divided by","\\circ":"circle","\\bullet":"bullet"},u={"=":"equals","\\approx":"approximately equals","\u2260":"does not equal","\\geq":"is greater than or equal to","\\ge":"is greater than or equal to","\\leq":"is less than or equal to","\\le":"is less than or equal to",">":"is greater than","<":"is less than","\\leftarrow":"left arrow","\\Leftarrow":"left arrow","\\rightarrow":"right arrow","\\Rightarrow":"right arrow",":":"colon"},p={"\\underleftarrow":"left arrow","\\underrightarrow":"right arrow","\\underleftrightarrow":"left-right arrow","\\undergroup":"group","\\underlinesegment":"line segment","\\utilde":"tilde"},d=function(e,r,t){var a;e&&(/^\d+$/.test(a="open"===r?e in i?i[e]:n[e]||e:"close"===r?e in l?l[e]:n[e]||e:"bin"===r?c[e]||e:"rel"===r?u[e]||e:n[e]||e)&&t.length>0&&/^\d+$/.test(t[t.length-1])?t[t.length-1]+=a:a&&t.push(a))},b=function(e,r){var t=[];e.push(t),r(t)},h=function(e,r,t){switch(e.type){case"accent":b(r,function(r){f(e.base,r,t),r.push("with"),d(e.label,"normal",r),r.push("on top")});break;case"accentUnder":b(r,function(r){f(e.base,r,t),r.push("with"),d(p[e.label],"normal",r),r.push("underneath")});break;case"accent-token":break;case"atom":var a=e.text;switch(e.family){case"bin":d(a,"bin",r);break;case"close":d(a,"close",r);break;case"inner":d(e.text,"inner",r);break;case"open":d(a,"open",r);break;case"punct":d(a,"punct",r);break;case"rel":d(a,"rel",r);break;default:throw e.family,new Error('"'+e.family+'" is not a valid atom type')}break;case"color":var o=e.color.replace(/katex-/,"");b(r,function(r){r.push("start color "+o),f(e.body,r,t),r.push("end color "+o)});break;case"color-token":break;case"delimsizing":e.delim&&"."!==e.delim&&d(e.delim,"normal",r);break;case"genfrac":b(r,function(r){var a=e.leftDelim,o=e.rightDelim;e.hasBarLine?(r.push("start fraction"),a&&d(a,"open",r),f(e.numer,r,t),r.push("divided by"),f(e.denom,r,t),o&&d(o,"close",r),r.push("end fraction")):(r.push("start binomial"),a&&d(a,"open",r),f(e.numer,r,t),r.push("over"),f(e.denom,r,t),o&&d(o,"close",r),r.push("end binomial"))});break;case"kern":br (…)

Completed in 18 milliseconds

123