Home
last modified time | relevance | path

Searched refs:clamp (Results 51 - 75 of 890) sorted by relevance

12345678910>>...36

/third_party/icu/icu4c/source/i18n/
H A DdecContext.cpp73 context->clamp=0; /* no clamping */ in uprv_decContextDefault()
87 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
98 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
109 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
/third_party/node/deps/icu-small/source/i18n/
H A DdecContext.cpp73 context->clamp=0; /* no clamping */ in uprv_decContextDefault()
87 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
98 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
109 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
/third_party/skia/third_party/externals/icu/source/i18n/
H A DdecContext.cpp73 context->clamp=0; /* no clamping */ in uprv_decContextDefault()
87 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
98 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
109 context->clamp=1; /* clamp exponents */ in uprv_decContextDefault()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dcompatibility.hpp47 template <typename T, precision P> GLM_FUNC_QUALIFIER T saturate(T x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate()
48 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> saturate(const tvec2<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate()
49 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> saturate(const tvec3<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate()
50 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> saturate(const tvec4<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate()
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dbq256xx_charger.c525 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); in bq256xx_set_ichg_curr()
538 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); in bq25618_619_set_ichg_curr()
638 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
660 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
681 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
696 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
734 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, in bq256xx_set_prechrg_curr()
766 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, in bq25618_619_set_prechrg_curr()
797 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); in bq256xx_set_term_curr()
827 iterm = clamp(iter in bq25618_619_set_term_curr()
[all...]
/third_party/vk-gl-cts/framework/referencerenderer/
H A DrrFragmentOperations.cpp36 using tcu::clamp;
39 using de::clamp;
111 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilCompare()
146 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilSFail()
153 case STENCILOP_INCR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits) - 1)) break; in executeStencilSFail()
154 case STENCILOP_DECR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue-1, 0, (1<<numStencilBits) - 1)) break; in executeStencilSFail()
230 float sampleDepth = de::clamp(sampleDepthFloat, 0.0f, 1.0f); \ in executeDepthCompare()
313 const float clampedDepth = de::clamp(frag.sampleDepths[fragSampleNdx], 0.0f, 1.0f); in executeDepthWrite()
341 case STENCILOP_INCR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits) - 1)) break; \ in executeStencilDpFailAndPass()
342 case STENCILOP_DECR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValu in executeStencilDpFailAndPass()
[all...]
/third_party/ffmpeg/libavcodec/arm/
H A Dvp8dsp_neon.S331 vqsub.s8 q12, q2, q5 @ clamp(PS1-QS1)
335 vand q12, q12, q9 @ if(hev) w += clamp(PS1-QS1)
337 vaddw.s8 q10, q10, d24 @ w += clamp(PS1-QS1)
359 @ c1 = clamp(w + 4) >> 3;
360 @ c2 = clamp(w + 3) >> 3;
365 vqadd.s8 q11, q10, q14 @ c1 = clamp((w&hev)+4)
366 vqadd.s8 q12, q10, q15 @ c2 = clamp((w&hev)+3)
369 vqsub.s8 q4, q4, q11 @ QS0 = clamp(QS0-c1)
370 vqadd.s8 q3, q3, q12 @ PS0 = clamp(PS0+c2)
380 vqadd.s8 q11, q10, q14 @ c1 = clamp((
[all...]
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-plldig.c134 div = clamp(div, 1UL, MAX_RFDPHI1); in plldig_calc_target_div()
145 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate()
159 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-plldig.c132 div = clamp(div, 1UL, MAX_RFDPHI1); in plldig_calc_target_div()
143 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate()
157 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr700_asm.c56 S_SQ_ALU_WORD1_CLAMP(alu->dst.clamp) | in r700_bytecode_alu_build()
67 S_SQ_ALU_WORD1_CLAMP(alu->dst.clamp) | in r700_bytecode_alu_build()
103 alu->dst.clamp = G_SQ_ALU_WORD1_CLAMP(word1); in r700_bytecode_alu_read()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DStateManager9.cpp443 dxViewport.X = gl::clamp(actualViewport.x, 0, static_cast<int>(mRenderTargetBounds.width)); in setViewportState()
444 dxViewport.Y = gl::clamp(actualViewport.y, 0, static_cast<int>(mRenderTargetBounds.height)); in setViewportState()
446 gl::clamp(actualViewport.width, 0, in setViewportState()
449 gl::clamp(actualViewport.height, 0, in setViewportState()
554 rect.left = gl::clamp(scissor.x, 0, static_cast<int>(mRenderTargetBounds.width)); in setScissorRect()
555 rect.top = gl::clamp(scissor.y, 0, static_cast<int>(mRenderTargetBounds.height)); in setScissorRect()
557 gl::clamp(scissor.x + scissor.width, 0, static_cast<int>(mRenderTargetBounds.width)); in setScissorRect()
559 gl::clamp(scissor.y + scissor.height, 0, static_cast<int>(mRenderTargetBounds.height)); in setScissorRect()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_blend.c59 boolean clamp[PIPE_MAX_COLOR_BUFS]; /**< clamp colors to [0,1]? */ member
940 const boolean clamp = bqs->clamp[cbuf]; in blend_fallback() local
945 if (clamp) in blend_fallback()
971 /* If fixed-point dest color buffer, need to clamp the incoming in blend_fallback()
974 if (clamp || softpipe->rasterizer->clamp_fragment_color) { in blend_fallback()
997 /* If fixed-point dest color buffer, need to clamp the outgoing in blend_fallback()
1000 if (clamp) { in blend_fallback()
1060 /* If fixed-point dest color buffer, need to clamp th in blend_single_add_src_alpha_inv_src_alpha()
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dntp.c307 offset = clamp(offset, -USEC_PER_SEC, USEC_PER_SEC); in ntp_update_offset()
313 * clamp to the operating range. in ntp_update_offset()
315 offset = clamp(offset, -MAXPHASE, MAXPHASE); in ntp_update_offset()
682 time_maxerror = clamp(txc->maxerror, (long long)0, (long long)NTP_PHASE_LIMIT); in process_adjtimex_modes()
685 time_esterror = clamp(txc->esterror, (long long)0, (long long)NTP_PHASE_LIMIT); in process_adjtimex_modes()
688 time_constant = clamp(txc->constant, (long long)0, (long long)MAXTC); in process_adjtimex_modes()
691 time_constant = clamp(time_constant, (long)0, (long)MAXTC); in process_adjtimex_modes()
/third_party/mesa3d/src/amd/compiler/
H A Daco_opt_value_numbering.cpp176 return a3.clamp == b3.clamp && a3.omod == b3.omod && a3.opsel == b3.opsel; in operator ()()
199 aSDWA.neg[1] == bSDWA.neg[1] && aSDWA.clamp == bSDWA.clamp && in operator ()()
236 a3P.clamp == b3P.clamp; in operator ()()
H A Daco_optimizer.cpp66 * (2) The second pass combines instructions like mad, omod, clamp and
89 /* label_{abs,neg,mul,omod2,omod4,omod5,clamp} are used for both 16 and
1780 if (vop3 && (vop3->abs[!i] || vop3->neg[!i] || vop3->clamp || vop3->omod)) in label_instruction()
1825 case aco_opcode::v_med3_f32: { /* clamp */ in label_instruction()
2247 new_vop3->clamp = cmp_vop3.clamp; in combine_comparison_ordering()
2372 new_vop3->clamp = cmp_vop3.clamp; in combine_constant_comparison_ordering()
2423 new_vop3->clamp = cmp_vop3.clamp; in combine_inverse_comparison()
2548 create_vop3_for_op3(opt_ctx& ctx, aco_opcode opcode, aco_ptr<Instruction>& instr, Operand operands[3], bool neg[3], bool abs[3], uint8_t opsel, bool clamp, unsigned omod) create_vop3_for_op3() argument
2576 bool neg[3], abs[3], clamp, precise; combine_three_valu_op() local
2646 bool clamp = false; combine_add_or_then_and_lshl() local
2669 bool neg[3], abs[3], clamp, precise; combine_minmax() local
2944 bool neg[3], abs[3], clamp, precise; combine_clamp() local
4007 bool clamp = false; combine_instruction() local
[all...]
/kernel/linux/linux-5.10/mm/
H A Dmemtest.c73 this_start = clamp(this_start, start, end); in do_one_pass()
74 this_end = clamp(this_end, start, end); in do_one_pass()
/kernel/linux/linux-6.6/mm/
H A Dmemtest.c80 this_start = clamp(this_start, start, end); in do_one_pass()
81 this_end = clamp(this_end, start, end); in do_one_pass()
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
H A Dispccdc.c530 * The CCDC performs either optical-black or digital clamp. Configure and enable
531 * the selected clamp method.
536 u32 clamp; in ccdc_configure_clamp() local
539 clamp = ccdc->clamp.obgain << ISPCCDC_CLAMP_OBGAIN_SHIFT; in ccdc_configure_clamp()
540 clamp |= ccdc->clamp.oblen << ISPCCDC_CLAMP_OBSLEN_SHIFT; in ccdc_configure_clamp()
541 clamp |= ccdc->clamp.oblines << ISPCCDC_CLAMP_OBSLN_SHIFT; in ccdc_configure_clamp()
542 clamp | in ccdc_configure_clamp()
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/
H A Dispccdc.c530 * The CCDC performs either optical-black or digital clamp. Configure and enable
531 * the selected clamp method.
536 u32 clamp; in ccdc_configure_clamp() local
539 clamp = ccdc->clamp.obgain << ISPCCDC_CLAMP_OBGAIN_SHIFT; in ccdc_configure_clamp()
540 clamp |= ccdc->clamp.oblen << ISPCCDC_CLAMP_OBSLEN_SHIFT; in ccdc_configure_clamp()
541 clamp |= ccdc->clamp.oblines << ISPCCDC_CLAMP_OBSLN_SHIFT; in ccdc_configure_clamp()
542 clamp | in ccdc_configure_clamp()
[all...]
/third_party/node/deps/npm/node_modules/jsbn/
H A Dindex.js166 this.clamp();
170 // (protected) clamp off excess high words
270 r.clamp();
288 r.clamp();
321 r.clamp();
333 r.clamp();
351 r.clamp();
398 r.clamp();
494 x.clamp();
538 BigInteger.prototype.clamp
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dpolygon.h41 GLfloat factor, GLfloat units, GLfloat clamp);
/kernel/linux/linux-6.6/drivers/thermal/
H A Dloongson2_thermal.c44 low = clamp(-40, low, high); in loongson2_thermal_set()
45 high = clamp(125, low, high); in loongson2_thermal_set()
/third_party/mesa3d/src/compiler/glsl/
H A Dir_equals.cpp155 if (!possibly_null_equals(clamp, other->clamp, ignore)) in equals()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
H A Dfunc_common.hpp173 /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a>
176 GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal);
179 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, T minVal, T maxVal);
182 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, vecType<T, P> const & minVal, vecType<T, P> const & maxVal);
262 /// t = clamp ((x - edge0) / (edge1 - edge0), 0, 1);
/third_party/astc-encoder/Source/
H A Dastcenc_entry.cpp399 config.tune_partition_count_limit = astc::clamp(config.tune_partition_count_limit, 1u, 4u); in validate_config()
400 config.tune_2partition_index_limit = astc::clamp(config.tune_2partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS); in validate_config()
401 config.tune_3partition_index_limit = astc::clamp(config.tune_3partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS); in validate_config()
402 config.tune_4partition_index_limit = astc::clamp(config.tune_4partition_index_limit, 1u, BLOCK_MAX_PARTITIONINGS); in validate_config()
403 config.tune_block_mode_limit = astc::clamp(config.tune_block_mode_limit, 1u, 100u); in validate_config()
405 config.tune_candidate_limit = astc::clamp(config.tune_candidate_limit, 1u, TUNE_MAX_TRIAL_CANDIDATES); in validate_config()
406 config.tune_2partitioning_candidate_limit = astc::clamp(config.tune_2partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES); in validate_config()
407 config.tune_3partitioning_candidate_limit = astc::clamp(config.tune_3partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES); in validate_config()
408 config.tune_4partitioning_candidate_limit = astc::clamp(config.tune_4partitioning_candidate_limit, 1u, TUNE_MAX_PARTITIONING_CANDIDATES); in validate_config()

Completed in 26 milliseconds

12345678910>>...36