| /third_party/vk-gl-cts/modules/gles2/functional/ |
| H A D | es2fMultisampleTests.cpp | 118 int xMin = de::clamp(min4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); in isPixelRegionUnicolored() 119 int yMin = de::clamp(min4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); in isPixelRegionUnicolored() 120 int xMax = de::clamp(max4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); in isPixelRegionUnicolored() 121 int yMax = de::clamp(max4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); in isPixelRegionUnicolored() 150 int xMin = de::clamp(min4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); in drawUnicolorTestErrors() 151 int yMin = de::clamp(min4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); in drawUnicolorTestErrors() 152 int xMax = de::clamp(max4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); in drawUnicolorTestErrors() 153 int yMax = de::clamp(max4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); in drawUnicolorTestErrors()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| H A D | intel_panel.c | 479 source_val = clamp(source_val, source_min, source_max); in scale() 499 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw() 1668 panel->backlight.level = clamp(val, panel->backlight.min, in lpt_setup_backlight() 1696 panel->backlight.level = clamp(val, panel->backlight.min, in pch_setup_backlight() 1737 panel->backlight.level = clamp(val, panel->backlight.min, in i9xx_setup_backlight() 1771 panel->backlight.level = clamp(val, panel->backlight.min, in i965_setup_backlight() 1804 panel->backlight.level = clamp(val, panel->backlight.min, in vlv_setup_backlight() 1846 panel->backlight.level = clamp(val, panel->backlight.min, in bxt_setup_backlight() 1886 panel->backlight.level = clamp(val, panel->backlight.min, in cnp_setup_backlight() 1929 panel->backlight.level = clamp(leve in pwm_setup_backlight() [all...] |
| /third_party/mesa3d/src/amd/compiler/ |
| H A D | aco_assembler.cpp | 618 encoding |= (vop3.clamp ? 1 : 0) << 11; in emit_instruction() 621 encoding |= (vop3.clamp ? 1 : 0) << 15; in emit_instruction() 659 encoding |= (vop3.clamp ? 1 : 0) << 15; in emit_instruction() 727 encoding |= (sdwa.clamp ? 1 : 0) << 13; in emit_instruction() 734 encoding |= (sdwa.clamp ? 1 : 0) << 13; in emit_instruction()
|
| /third_party/skia/third_party/externals/swiftshader/src/Device/ |
| H A D | Renderer.cpp | 416 data->scissorX0 = clamp<int>(scissor.offset.x, 0, framebufferExtent.width); in draw() 417 data->scissorX1 = clamp<int>(scissor.offset.x + scissor.extent.width, 0, framebufferExtent.width); in draw() 418 data->scissorY0 = clamp<int>(scissor.offset.y, 0, framebufferExtent.height); in draw() 419 data->scissorY1 = clamp<int>(scissor.offset.y + scissor.extent.height, 0, framebufferExtent.height); in draw() 1155 pSize = clamp(pSize, 1.0f, static_cast<float>(vk::MAX_POINT_SIZE)); in setupPoint()
|
| /third_party/skia/src/shaders/ |
| H A D | SkImageShader.cpp | 54 * We are faster in clamp, so always use that tiling when we can. 60 // for transforming to clamp. in optimize() 454 case SkTileMode::kClamp: /* The gather_xxx stage will clamp for us. */ break; in doStages() 460 case SkTileMode::kClamp: /* The gather_xxx stage will clamp for us. */ break; in doStages() 725 // Subtract an ulp so the upper clamp limit excludes limit itself. in makeProgram() 773 // repeat() and mirror() are written assuming they'll be followed by a [0,scale) clamp. in makeProgram() 786 case SkTileMode::kClamp: /* we always clamp */ break; in makeProgram() 792 case SkTileMode::kClamp: /* we always clamp */ break; in makeProgram() 797 // Always clamp sample coordinates to [0,width), [0,height), both for memory in makeProgram() 799 skvm::F32 clamped_x = clamp(s in makeProgram() [all...] |
| /third_party/vk-gl-cts/modules/glshared/ |
| H A D | glsTextureBufferCase.cpp | 200 texelValue = tcu::Vec4(m_texture.getPixel(de::clamp<int>((deRoundFloatToInt32(position.x() * 4) + 4) * (deRoundFloatToInt32(position.y() * 4) + 4), 0, m_texture.getWidth()-1), 0)); in shadeVertices() 268 const tcu::Vec4 texColor0 = m_texture.getPixel(de::clamp((position0.x() * position0.y()), 0, m_texture.getWidth()-1), 0); in shadeFragments() 269 const tcu::Vec4 texColor1 = m_texture.getPixel(de::clamp((position1.x() * position1.y()), 0, m_texture.getWidth()-1), 0); in shadeFragments() 270 const tcu::Vec4 texColor2 = m_texture.getPixel(de::clamp((position2.x() * position2.y()), 0, m_texture.getWidth()-1), 0); in shadeFragments() 271 const tcu::Vec4 texColor3 = m_texture.getPixel(de::clamp((position3.x() * position3.y()), 0, m_texture.getWidth()-1), 0); in shadeFragments() 320 stream << "\tv_color = texelFetch(u_vtxSampler, clamp((int(round(i_coord.x * 4.0)) + 4) * (int(round(i_coord.y * 4.0)) + 4), 0, textureSize(u_vtxSampler)-1));\n"; in generateVertexShaderTemplate() 354 stream << "\t${HIGHP} vec4 color = 0.5 * (v_color + texelFetch(u_fragSampler, clamp(int(gl_FragCoord.x) * int(gl_FragCoord.y), 0, textureSize(u_fragSampler)-1)));\n"; in generateFragmentShaderTemplate()
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| H A D | jz4740_wdt.c | 171 jz4740_wdt->timeout = clamp(heartbeat, in jz4740_wdt_probe()
|
| /kernel/linux/linux-5.10/drivers/media/radio/ |
| H A D | tef6862.c | 103 freq = clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ); in tef6862_s_frequency()
|
| /kernel/linux/linux-6.6/drivers/media/radio/ |
| H A D | tef6862.c | 103 freq = clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ); in tef6862_s_frequency()
|
| /kernel/linux/linux-6.6/drivers/net/can/dev/ |
| H A D | calc_bittiming.c | 39 tseg2 = clamp(tseg2, btc->tseg2_min, btc->tseg2_max); in can_update_sample_point()
|
| /kernel/linux/linux-6.6/drivers/watchdog/ |
| H A D | jz4740_wdt.c | 171 jz4740_wdt->timeout = clamp(heartbeat, in jz4740_wdt_probe()
|
| /third_party/icu/icu4c/source/i18n/ |
| H A D | decContext.h | 45 /* clamp -- must be either 0 or 1 */ 97 uint8_t clamp; /* flag: apply IEEE exponent clamp */ member
|
| /third_party/mesa3d/src/freedreno/vulkan/ |
| H A D | tu_pipeline.h | 228 float clamp,
|
| /third_party/node/deps/icu-small/source/i18n/ |
| H A D | decContext.h | 45 /* clamp -- must be either 0 or 1 */ 97 uint8_t clamp; /* flag: apply IEEE exponent clamp */ member
|
| /third_party/mesa3d/src/panfrost/bifrost/test/ |
| H A D | test-scheduler-predicates.cpp | 141 /* With clamp */ in TEST_F() 142 fadd->clamp = BI_CLAMP_CLAMP_M1_1; in TEST_F()
|
| /third_party/mesa3d/src/panfrost/bifrost/valhall/test/ |
| H A D | test-add-imm.cpp | 88 I->clamp = BI_CLAMP_CLAMP_M1_1; in TEST_F()
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| H A D | decContext.h | 45 /* clamp -- must be either 0 or 1 */ 97 uint8_t clamp; /* flag: apply IEEE exponent clamp */ member
|
| /third_party/vk-gl-cts/modules/gles3/functional/ |
| H A D | es3fFragmentOutputTests.cpp | 407 const int cellX = de::clamp(deFloorFloatToInt32((float)x / cellW), 0, gridWidth-2); in renderFloatReference() 408 const int cellY = de::clamp(deFloorFloatToInt32((float)y / cellH), 0, gridHeight-2); in renderFloatReference() 437 int cellX = de::clamp(deFloorFloatToInt32((float)x / cellW), 0, gridWidth-2); in renderIntReference() 438 int cellY = de::clamp(deFloorFloatToInt32((float)y / cellH), 0, gridHeight-2); in renderIntReference() 553 const int gridWidth = de::clamp(minBufSize.x()/minCellSize, 1, 255)+1; in iterate() 554 const int gridHeight = de::clamp(minBufSize.y()/minCellSize, 1, 255)+1; in iterate() 690 const IVec4 shift = tcu::clamp(fmtBits-1, tcu::IVec4(0), tcu::IVec4(256)); in iterate()
|
| /base/msdp/device_status/intention/cooperate/plugin/src/ |
| H A D | cooperate_context.cpp | 363 double xPercent = (PERCENT - std::clamp<double>(cursorPos.x, 0.0, PERCENT)) / PERCENT; in SetCursorPosition() 364 double yPercent = std::clamp<double>(cursorPos.y, 0.0, PERCENT) / PERCENT; in SetCursorPosition()
|
| /kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
| H A D | kaslr.c | 663 entry.start = clamp(region->start, start, end); in process_mem_region() 664 entry_end = clamp(region_end, start, end); in process_mem_region()
|
| /kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
| H A D | txx9ndfmc.c | 305 hold = clamp(hold, 1, 15); in txx9ndfmc_probe() 307 spw = clamp(spw, 1, 15); in txx9ndfmc_probe()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_cubic.c | 24 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro 39 #define HYSTART_DELAY_THRESH(x) clamp(x, HYSTART_DELAY_MIN, HYSTART_DELAY_MAX)
|
| /kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
| H A D | kaslr.c | 659 entry.start = clamp(region->start, start, end); in process_mem_region() 660 entry_end = clamp(region_end, start, end); in process_mem_region()
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| H A D | hid-udraw-ps3.c | 92 axis = clamp(axis, in clamp_accel() 233 level = clamp(data[13] - PRESSURE_OFFSET, in udraw_raw_event() 368 /* 1G accel is reported as ~256, so clamp to 2G */ in udraw_setup_accel()
|
| /kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
| H A D | bttv-vbi.c | 271 start = clamp(f->start[i], min_start, max_start); in try_fmt() 275 f->count[i] = clamp(count, (s64) 1, in try_fmt()
|