Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 25 of 1032) sorted by relevance

12345678910>>...42

/external/llvm/test/CodeGen/AMDGPU/
Dllvm.AMDGPU.clamp.ll6 declare float @llvm.AMDGPU.clamp.f32(float, float, float) nounwind readnone
10 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, [[ARG]] clamp{{$}}
16 %clamp = call float @llvm.AMDGPU.clamp.f32(float %src, float 0.0, float 1.0) nounwind readnone
17 store float %clamp, float addrspace(1)* %out, align 4
23 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, |[[ARG]]| clamp{{$}}
28 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fabs, float 0.0, float 1.0) nounwind readnone
29 store float %clamp, float addrspace(1)* %out, align 4
35 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, -[[ARG]] clamp{{$}}
40 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fneg, float 0.0, float 1.0) nounwind readnone
41 store float %clamp, float addrspace(1)* %out, align 4
[all …]
Dllvm.amdgcn.log.clamp.ll6 declare float @llvm.amdgcn.log.clamp.f32(float) #0
11 %log.clamp = call float @llvm.amdgcn.log.clamp.f32(float %src) #0
12 store float %log.clamp, float addrspace(1)* %out
/external/libcxx/test/std/algorithms/alg.sorting/alg.clamp/
Dclamp.pass.cpp37 assert(&std::clamp(a, lo, hi) == &x); in test()
69 assert(eq(std::clamp(x, y, z), x)); in main()
70 assert(eq(std::clamp(y, x, z), y)); in main()
78 assert(eq(std::clamp(x, y, z), x)); in main()
79 assert(eq(std::clamp(y, x, z), y)); in main()
87 assert(eq(std::clamp(x, y, z), x)); in main()
88 assert(eq(std::clamp(z, y, x), z)); in main()
96 assert(eq(std::clamp(x, y, z), x)); in main()
97 assert(eq(std::clamp(y, x, z), x)); in main()
105 assert(eq(std::clamp(x, y, z), y)); in main()
[all …]
Dclamp.comp.pass.cpp39 assert(&std::clamp(v, lo, hi, c) == &x); in test()
71 assert(eq(std::clamp(x, y, z, comp), x)); in main()
72 assert(eq(std::clamp(y, x, z, comp), y)); in main()
80 assert(eq(std::clamp(x, y, z, comp), x)); in main()
81 assert(eq(std::clamp(y, x, z, comp), y)); in main()
89 assert(eq(std::clamp(x, y, z, comp), x)); in main()
90 assert(eq(std::clamp(z, y, x, comp), z)); in main()
98 assert(eq(std::clamp(x, y, z, comp), x)); in main()
99 assert(eq(std::clamp(y, x, z, comp), x)); in main()
107 assert(eq(std::clamp(x, y, z, comp), y)); in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AMDGPU/
Dvop3.s177 v_fract_f32 v1, v2 clamp
185 v_fract_f32 v1, v2, clamp div:2
250 v_mac_f32_e64 v0, v1, v2 clamp
340 v_add_f64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4
344 v_add_f64 v[0:1], -v[2:3], abs(v[5:6]) clamp mul:4
348 v_add_f64_e64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4
352 v_add_f64_e64 v[0:1], -v[2:3], abs(v[5:6]) clamp mul:4
455 v_fma_f16 v5, v1, v2, v3 clamp
479 v_div_fixup_f16 v5, v1, v2, v3 clamp
500 v_mad_f16 v5, v1, v2, v3 clamp
[all …]
Dvop3-modifiers.s265 v_cvt_f64_i32_e64 v[5:6], s1 clamp
278 v_cvt_f64_u32_e64 v[5:6], s1 clamp
291 v_cvt_f32_i32_e64 v5, s1 clamp
304 v_cvt_f32_u32_e64 v5, s1 clamp
317 v_cvt_off_f32_i4_e64 v5, s1 clamp
330 v_cvt_f32_ubyte0_e64 v5, s1 clamp
343 v_cvt_f32_ubyte1_e64 v5, s1 clamp
356 v_cvt_f32_ubyte2_e64 v5, s1 clamp
369 v_cvt_f32_ubyte3_e64 v5, s1 clamp
383 v_cvt_f16_i16_e64 v5, s1 clamp
[all …]
Dvop3-gfx9.s191 v_sub_i16 v5, v1, v2 clamp
203 v_fma_f16 v5, v1, v2, v3 clamp
224 v_fma_legacy_f16 v5, v1, v2, v3 clamp
242 v_div_fixup_f16 v5, v1, v2, v3 clamp
269 v_div_fixup_legacy_f16 v5, v1, v2, v3 clamp
305 v_mad_f16 v5, v1, v2, v3 clamp
317 v_mad_i16 v5, v1, v2, v3 clamp
341 v_mad_legacy_f16 v5, v1, v2, v3 clamp
353 v_mad_legacy_i16 v5, v1, v2, -4.0 clamp
365 v_mad_legacy_u16 v5, v1, v2, -4.0 clamp
[all …]
/external/libvpx/libvpx/test/
Dadd_noise_test.cc53 const int clamp = vpx_setup_noise(GET_PARAM(0), noise, kNoiseSize); in TEST_P() local
60 GET_PARAM(1)(s, noise, clamp, clamp, width, height, width)); in TEST_P()
79 GET_PARAM(1)(s, noise, clamp, clamp, width, height, width)); in TEST_P()
83 EXPECT_GT(static_cast<int>(s[i]), clamp) << "i = " << i; in TEST_P()
90 GET_PARAM(1)(s, noise, clamp, clamp, width, height, width)); in TEST_P()
94 EXPECT_LT(static_cast<int>(s[i]), 255 - clamp) << "i = " << i; in TEST_P()
105 const int clamp = vpx_setup_noise(4.4, noise, kNoiseSize); in TEST_P() local
117 GET_PARAM(1)(s, noise, clamp, clamp, width, height, width)); in TEST_P()
120 vpx_plane_add_noise_c(d, noise, clamp, clamp, width, height, width)); in TEST_P()
/external/libvpx/libvpx/vp9/common/
Dvp9_quant_common.c167 case VPX_BITS_8: return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
168 case VPX_BITS_10: return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
169 case VPX_BITS_12: return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
176 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
183 case VPX_BITS_8: return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
184 case VPX_BITS_10: return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
185 case VPX_BITS_12: return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
192 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
202 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dclamp-modifier.ll8 ; GCN: v_add_f32_e64 v{{[0-9]+}}, [[A]], 1.0 clamp{{$}}
16 %clamp = call float @llvm.minnum.f32(float %max, float 1.0)
17 store float %clamp, float addrspace(1)* %out.gep
24 ; GCN: v_max_f32_e64 v{{[0-9]+}}, [[ADD]], [[ADD]] clamp{{$}}
32 %clamp = call float @llvm.minnum.f32(float %max, float 1.0)
33 store float %clamp, float addrspace(1)* %out.gep
41 ; GCN: v_add_f32_e64 v{{[0-9]+}}, [[A]], 1.0 clamp{{$}}
50 %clamp = call float @llvm.minnum.f32(float %max, float 1.0)
51 store float %clamp, float addrspace(1)* %out.gep
58 ; GCN: v_max_f32_e64 v{{[0-9]+}}, -[[FLOOR]], -[[FLOOR]] clamp{{$}}
[all …]
Dmad-mix-lo.ll47 ; GFX9-NEXT: v_mad_mixlo_f16 v0, v0, v1, v2 op_sel_hi:[1,1,0] clamp{{$}}
57 %clamp = call half @llvm.minnum.f16(half %max, half 1.0)
58 ret half %clamp
63 ; GFX9-NEXT: v_mad_mix_f32 v0, v0, v1, v2 op_sel_hi:[1,1,0] clamp{{$}}
67 ; CIVI: v_mac_f32_e64 v{{[0-9]}}, v{{[0-9]}}, v{{[0-9]}} clamp{{$}}
73 %clamp = call float @llvm.minnum.f32(float %max, float 1.0)
74 %cvt.result = fptrunc float %clamp to half
131 ; FIXME: Fold clamp
133 ; GFX9: v_mad_mixlo_f16 v3, v0, v1, v2 op_sel_hi:[1,1,1] clamp{{$}}
134 ; GFX9-NEXT: v_mad_mixhi_f16 v3, v0, v1, v2 op_sel:[1,1,1] op_sel_hi:[1,1,1] clamp{{$}}
[all …]
Dkcache-fold.ll40 %clamp.i = call float @llvm.minnum.f32(float %max.0.i, float 1.000000e+00)
42 %clamp.i6 = call float @llvm.minnum.f32(float %max.0.i5, float 1.000000e+00)
44 %clamp.i4 = call float @llvm.minnum.f32(float %max.0.i3, float 1.000000e+00)
46 %clamp.i2 = call float @llvm.minnum.f32(float %max.0.i1, float 1.000000e+00)
47 %tmp38 = insertelement <4 x float> undef, float %clamp.i, i32 0
48 %tmp39 = insertelement <4 x float> %tmp38, float %clamp.i6, i32 1
49 %tmp40 = insertelement <4 x float> %tmp39, float %clamp.i4, i32 2
50 %tmp41 = insertelement <4 x float> %tmp40, float %clamp.i2, i32 3
92 %clamp.i = call float @llvm.minnum.f32(float %max.0.i, float 1.000000e+00)
94 %clamp.i6 = call float @llvm.minnum.f32(float %max.0.i5, float 1.000000e+00)
[all …]
Dllvm.amdgcn.log.clamp.ll6 declare float @llvm.amdgcn.log.clamp.f32(float) #0
11 %log.clamp = call float @llvm.amdgcn.log.clamp.f32(float %src) #0
12 store float %log.clamp, float addrspace(1)* %out
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DAMDGPUAsmGFX8.rst594 …v_ceil_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
597 …v_ceil_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
602 …v_cos_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
605 …v_cos_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
608 …v_cvt_f16_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
611 …v_cvt_f16_i16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
614 …v_cvt_f16_u16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
617 …v_cvt_f32_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
621 …v_cvt_f32_i32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
624 …v_cvt_f32_u32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
[all …]
DAMDGPUAsmGFX9.rst748 …v_ceil_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
751 …v_ceil_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
756 …v_cos_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
759 …v_cos_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
762 …v_cvt_f16_f32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
765 …v_cvt_f16_i16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
768 …v_cvt_f16_u16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
771 …v_cvt_f32_f16_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
775 …v_cvt_f32_i32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
778 …v_cvt_f32_u32_sdwa dst, src0 :ref:`clamp<amdgpu_synid_clamp>` :re…
[all …]
/external/skqp/experimental/canvaskit/
Dhelper.js6 function clamp(c) { function
18 return (clamp(a*255) << 24) | (clamp(r) << 16) | (clamp(g) << 8) | (clamp(b) << 0);
41 return clamp(a) << 24 | color;
/external/pdfium/core/fxge/dib/
Dcstretchengine.cpp391 dest_a = pdfium::clamp(dest_a, 0, kMaxDestValue); in ContinueStretchHorz()
409 dest_a = pdfium::clamp(dest_a, 0, kMaxDestValue); in ContinueStretchHorz()
430 dest_r = pdfium::clamp(dest_r, 0, kMaxDestValue); in ContinueStretchHorz()
431 dest_a = pdfium::clamp(dest_a, 0, 65536); in ContinueStretchHorz()
462 dest_r_y = pdfium::clamp(dest_r_y, 0, kMaxDestValue); in ContinueStretchHorz()
463 dest_g_m = pdfium::clamp(dest_g_m, 0, kMaxDestValue); in ContinueStretchHorz()
464 dest_b_c = pdfium::clamp(dest_b_c, 0, kMaxDestValue); in ContinueStretchHorz()
499 dest_b_c = pdfium::clamp(dest_b_c, 0, kMaxDestValue); in ContinueStretchHorz()
500 dest_g_m = pdfium::clamp(dest_g_m, 0, kMaxDestValue); in ContinueStretchHorz()
501 dest_r_y = pdfium::clamp(dest_r_y, 0, kMaxDestValue); in ContinueStretchHorz()
[all …]
/external/deqp-deps/glslang/Test/
Dhlsl.intrinsics.promote.frag35 float2 r20 = clamp(i2, u2, f2); // 3 args, converts all to best type.
36 uint2 r21 = clamp(b2, u2, b2);
37 float2 r22 = clamp(b2, f2, b2);
46 float2 r40 = clamp(i, u2, f2); // 3 args, converts all to best type.
47 uint2 r41 = clamp(b2, u, b2);
48 float2 r42 = clamp(b2, f, b);
49 int2 r43 = clamp(i, i2, u2);
/external/angle/third_party/glslang/src/Test/
Dhlsl.intrinsics.promote.frag35 float2 r20 = clamp(i2, u2, f2); // 3 args, converts all to best type.
36 uint2 r21 = clamp(b2, u2, b2);
37 float2 r22 = clamp(b2, f2, b2);
46 float2 r40 = clamp(i, u2, f2); // 3 args, converts all to best type.
47 uint2 r41 = clamp(b2, u, b2);
48 float2 r42 = clamp(b2, f, b);
49 int2 r43 = clamp(i, i2, u2);
/external/libchrome/ui/gfx/geometry/
Dsize_f.h27 : width_(clamp(width)), height_(clamp(height)) {} in SizeF()
36 void set_width(float width) { width_ = clamp(width); } in set_width()
37 void set_height(float height) { height_ = clamp(height); } in set_height()
70 static constexpr float clamp(float f) { return f > kTrivial ? f : 0.f; } in clamp() function
/external/deqp/framework/common/
DtcuTexLookupVerifier.cpp699 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
700 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
762 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
763 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
764 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
765 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
838 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
839 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
840 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
841 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
[all …]
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.4.x/src/
Dgles3-driver-issues.txt28 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.scalar
29 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec2
30 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec3
31 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec4
32 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.scalar
33 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec2
34 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec3
35 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec4
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.3.x/src/
Dgles3-driver-issues.txt28 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.scalar
29 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec2
30 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec3
31 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_vertex.vec4
32 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.scalar
33 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec2
34 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec3
35 dEQP-GLES3.functional.shaders.builtin_functions.precision.clamp.highp_fragment.vec4
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_offset.c47 float clamp; member
115 if (offset->clamp) in do_offset_tri()
116 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri()
117 MIN2(zoffset, offset->clamp); in do_offset_tri()
180 offset->clamp = rast->offset_clamp; in offset_first_tri()
195 offset->clamp = 0.0f; in offset_first_tri()
/external/u-boot/arch/arm/cpu/armv7/sunxi/
Dpsci.c78 static void __secure clamp_release(void __maybe_unused *clamp) in clamp_release() argument
86 writel(tmp, clamp); in clamp_release()
93 static void __secure clamp_set(void __maybe_unused *clamp) in clamp_set() argument
98 writel(0xff, clamp); in clamp_set()
102 static void __secure sunxi_power_switch(void *clamp, void *pwroff_ptr, bool on, in sunxi_power_switch() argument
111 clamp_release(clamp); in sunxi_power_switch()
120 clamp_set(clamp); in sunxi_power_switch()

12345678910>>...42