Home
last modified time | relevance | path

Searched full:clamp (Results 1 – 25 of 20077) sorted by relevance

12345678910>>...804

/aosp_15_r20/external/sdv/vsomeip/third_party/boost/algorithm/test/
Dclamp_test.cpp10 #include <boost/algorithm/clamp.hpp>
43 BOOST_CHECK_EQUAL ( 3, ba::clamp ( 3, 1, 10 )); in test_ints()
44 BOOST_CHECK_EQUAL ( 1, ba::clamp ( 1, 1, 10 )); in test_ints()
45 BOOST_CHECK_EQUAL ( 1, ba::clamp ( 0, 1, 10 )); in test_ints()
46 BOOST_CHECK_EQUAL ( 10, ba::clamp ( 10, 1, 10 )); in test_ints()
47 BOOST_CHECK_EQUAL ( 10, ba::clamp ( 11, 1, 10 )); in test_ints()
49 ba::clamp ( 3, 1, 10 ) == 3 in test_ints()
53 BOOST_CHECK_EQUAL ( 3, ba::clamp ( 3, 10, 1, intGreater )); in test_ints()
54 BOOST_CHECK_EQUAL ( 1, ba::clamp ( 1, 10, 1, intGreater )); in test_ints()
55 BOOST_CHECK_EQUAL ( 1, ba::clamp ( 0, 10, 1, intGreater )); in test_ints()
[all …]
/aosp_15_r20/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
H A DTestClamp.rscript28 return clamp(inValue, inMinValue, inMaxValue);
34 return clamp(inValue, inMinValue, inMaxValue);
40 return clamp(inValue, inMinValue, inMaxValue);
46 return clamp(inValue, inMinValue, inMaxValue);
52 return clamp(inValue, inMinValue, inMaxValue);
58 return clamp(inValue, inMinValue, inMaxValue);
64 return clamp(inValue, inMinValue, inMaxValue);
70 return clamp(inValue, inMinValue, inMaxValue);
76 return clamp(inValue, inMinValue, inMaxValue);
82 return clamp(inValue, inMinValue, inMaxValue);
[all …]
/aosp_15_r20/external/mesa3d/src/panfrost/compiler/test/
H A Dtest-optimizer.cpp113 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
117 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
124 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
128 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
135 I->clamp = BI_CLAMP_CLAMP_0_INF; in TEST_F()
139 I->clamp = BI_CLAMP_CLAMP_0_INF; in TEST_F()
149 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
153 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
160 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
164 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F()
[all …]
/aosp_15_r20/external/skia/src/effects/colorfilters/
H A DSkMatrixColorFilter.cpp35 SkMatrixColorFilter::SkMatrixColorFilter(const float array[20], Domain domain, Clamp clamp) in SkMatrixColorFilter() argument
36 : fAlphaIsUnchanged(is_alpha_unchanged(array)), fDomain(domain), fClamp(clamp) { in SkMatrixColorFilter()
46 buffer.writeBool(fClamp == Clamp::kYes); in flatten()
56 Clamp clamp = buffer.isVersionLT(SkPicturePriv::kUnclampedMatrixColorFilter) in CreateProc() local
57 ? Clamp::kYes in CreateProc()
58 : (buffer.readBool() ? Clamp::kYes : Clamp::kNo); in CreateProc()
59 // clamp option is ignored for HSL-domain filters in CreateProc()
60 return is_rgba ? SkColorFilters::Matrix(matrix, clamp) : SkColorFilters::HSLAMatrix(matrix); in CreateProc()
73 clamp = fClamp == Clamp::kYes; in appendStages() local
88 if (clamp) { in appendStages()
[all …]
/aosp_15_r20/libcore/ojluni/src/test/java/lang/Math/
H A DClamp.java28 @summary Add clamp() methods to java.lang.Math
32 public class Clamp { class
42 System.err.println("Testing clamp incurred " + failures + " failures."); in main()
74 …failures += checkEquals("(int) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(va… in testIntClamp()
75 …failures += checkEquals("(int) StrictMath.clamp(" + value + ", " + min + ", " + max + ")", StrictM… in testIntClamp()
81 …failures += checkIllegalArgumentException("(int) Math.clamp(" + value + ", " + min + ", " + max + … in testIntClamp()
82 () -> Math.clamp(value, min, max)); in testIntClamp()
83 …failures += checkIllegalArgumentException("(int) StrictMath.clamp(" + value + ", " + min + ", " + … in testIntClamp()
84 () -> StrictMath.clamp(value, min, max)); in testIntClamp()
114 …failures += checkEquals("(long) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(v… in testLongClamp()
[all …]
/aosp_15_r20/external/angle/src/tests/gl_tests/
H A DPolygonOffsetClampTest.cpp35 GLfloat clamp = -1.0f; in TEST_P() local
36 glGetFloatv(GL_POLYGON_OFFSET_CLAMP_EXT, &clamp); in TEST_P()
38 EXPECT_EQ(clamp, -1.0f); in TEST_P()
71 GLfloat clamp = -1.0f; in TEST_P() local
72 glGetFloatv(GL_POLYGON_OFFSET_CLAMP_EXT, &clamp); in TEST_P()
73 EXPECT_EQ(clamp, 0.0f); in TEST_P()
90 GLfloat clamp = -1.0f; in TEST_P() local
91 glGetFloatv(GL_POLYGON_OFFSET_CLAMP_EXT, &clamp); in TEST_P()
92 EXPECT_EQ(clamp, 3.0f); in TEST_P()
97 // Core function resets the clamp value to zero in TEST_P()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
H A DIntrinsicsNVPTX.h404 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
407 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
410 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
413 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
416 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
419 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
422 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
425 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
428 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
431 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/utils/
DMathUtils.kt29 * Maps a value from a range to a different one (with the option to clamp it to the new range).
36 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
48 clamp: Boolean = true in map()
50 if (clamp) { in map()
62 * Maps a value from a range to a different one (with the option to clamp it to the new range).
69 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
81 clamp: Boolean = true in map()
83 if (clamp) { in map()
102 * bigger than 1 and [clamp] is false, it continues returning values based on the line created
104 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
[all …]
/aosp_15_r20/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DMathUtils.kt31 * Maps a value from a range to a different one (with the option to clamp it to the new range).
38 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
51 clamp: Boolean = true in map()
53 if (clamp) { in map()
65 * Maps a value from a range to a different one (with the option to clamp it to the new range).
72 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
85 clamp: Boolean = true in map()
87 if (clamp) { in map()
106 * and [clamp] is false, it continues returning values based on the line created using
108 * @param clamp If you want to clamp the mapped value to the new range, set to true; otherwise
[all …]
/aosp_15_r20/external/skia/src/gpu/ganesh/effects/
H A DGrBicubicEffect.cpp101 // Bicubic can send colors out of range, so clamp to get them back in (source) gamut. in emitCode()
102 // The kind of clamp we have to do depends on the alpha type. in emitCode()
104 case Clamp::kUnpremul: in emitCode()
107 case Clamp::kPremul: in emitCode()
132 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() local
134 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in Make()
148 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() local
150 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in Make()
167 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset() local
169 new GrBicubicEffect(std::move(fp), kernel, direction, clamp))); in MakeSubset()
[all …]
/aosp_15_r20/external/deqp/framework/common/
H A DtcuTexCompareVerifier.cpp60 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); in execCompare()
61 …const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference_… in execCompare()
566 const float minA = de::clamp((uBounds.x() - 0.5f) - float(i), 0.0f, 1.0f); in isLinearCompareResultValid()
567 const float maxA = de::clamp((uBounds.y() - 0.5f) - float(i), 0.0f, 1.0f); in isLinearCompareResultValid()
568 const float minB = de::clamp((vBounds.x() - 0.5f) - float(j), 0.0f, 1.0f); in isLinearCompareResultValid()
569 const float maxB = de::clamp((vBounds.y() - 0.5f) - float(j), 0.0f, 1.0f); in isLinearCompareResultValid()
688 const float minA0 = de::clamp((uBounds0.x() - 0.5f) - float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
689 const float maxA0 = de::clamp((uBounds0.y() - 0.5f) - float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
690 const float minB0 = de::clamp((vBounds0.x() - 0.5f) - float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
691 const float maxB0 = de::clamp((vBounds0.y() - 0.5f) - float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
[all …]
/aosp_15_r20/external/cronet/base/android/junit/src/org/chromium/base/
H A DMathUtilsTest.java20 private static final String CLAMP_FAILURE = "Failure to correctly clamp value to range.";
37 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, min, max)); in testClampInt()
38 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, max, min)); in testClampInt()
40 Assert.assertEquals(CLAMP_FAILURE, 1, MathUtils.clamp(-1, min, max)); in testClampInt()
41 Assert.assertEquals(CLAMP_FAILURE, 1, MathUtils.clamp(0, max, min)); in testClampInt()
43 Assert.assertEquals(CLAMP_FAILURE, 9, MathUtils.clamp(10, min, max)); in testClampInt()
44 Assert.assertEquals(CLAMP_FAILURE, 9, MathUtils.clamp(30, max, min)); in testClampInt()
51 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, min, max), EPSILON); in testClampLong()
52 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, max, min), EPSILON); in testClampLong()
54 Assert.assertEquals(CLAMP_FAILURE, 1, MathUtils.clamp(-1, min, max), EPSILON); in testClampLong()
[all …]
/aosp_15_r20/external/pdfium/third_party/libtiff/
H A Dtif_pixarlog.c1065 #define CLAMP(v) \ in horizontalDifferenceF() macro
1076 r2 = wp[0] = (uint16_t)CLAMP(ip[0]); in horizontalDifferenceF()
1077 g2 = wp[1] = (uint16_t)CLAMP(ip[1]); in horizontalDifferenceF()
1078 b2 = wp[2] = (uint16_t)CLAMP(ip[2]); in horizontalDifferenceF()
1085 r1 = (int32_t)CLAMP(ip[0]); in horizontalDifferenceF()
1088 g1 = (int32_t)CLAMP(ip[1]); in horizontalDifferenceF()
1091 b1 = (int32_t)CLAMP(ip[2]); in horizontalDifferenceF()
1098 r2 = wp[0] = (uint16_t)CLAMP(ip[0]); in horizontalDifferenceF()
1099 g2 = wp[1] = (uint16_t)CLAMP(ip[1]); in horizontalDifferenceF()
1100 b2 = wp[2] = (uint16_t)CLAMP(ip[2]); in horizontalDifferenceF()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm/IR/
DIntrinsicsNVPTX.h663 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
666 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
669 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
672 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
675 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
678 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
681 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
684 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
687 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
690 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/configs/common/include/llvm/IR/
H A DIntrinsicsNVPTX.h605 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
608 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
611 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
614 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
617 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
620 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
623 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
626 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
629 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
632 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/external/skia/resources/sksl/intrinsics/
H A DClampUInt.sksl14 return (clamp(uintValues.x, 100, 300) == expectedA.x &&
15 clamp(uintValues.xy, 100, 300) == expectedA.xy &&
16 clamp(uintValues.xyz, 100, 300) == expectedA.xyz &&
17 clamp(uintValues.xyzw, 100, 300) == expectedA.xyzw &&
18 clamp(constVal.x, 100, 300) == expectedA.x &&
19 clamp(constVal.xy, 100, 300) == expectedA.xy &&
20 clamp(constVal.xyz, 100, 300) == expectedA.xyz &&
21 clamp(constVal.xyzw, 100, 300) == expectedA.xyzw &&
22 clamp(uintValues.x, clampLow.x, clampHigh.x ) == expectedB.x &&
23 clamp(uintValues.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
[all …]
H A DClampFloat.sksl12 return (clamp(testInputs.x, -1, 1) == expectedA.x &&
13 clamp(testInputs.xy, -1, 1) == expectedA.xy &&
14 clamp(testInputs.xyz, -1, 1) == expectedA.xyz &&
15 clamp(testInputs.xyzw, -1, 1) == expectedA.xyzw &&
16 clamp(testInputs.x, clampLow.x, clampHigh.x ) == expectedB.x &&
17 clamp(testInputs.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
18 clamp(testInputs.xyz, clampLow.xyz, clampHigh.xyz ) == expectedB.xyz &&
19 clamp(testInputs.xyzw, clampLow.xyzw, clampHigh.xyzw) == expectedB.xyzw &&
20 clamp(constVal.x, -1, 1) == expectedA.x &&
21 clamp(constVal.xy, -1, 1) == expectedA.xy &&
[all …]
H A DClampInt.sksl14 return (clamp(intValues.x, -100, 100) == expectedA.x &&
15 clamp(intValues.xy, -100, 100) == expectedA.xy &&
16 clamp(intValues.xyz, -100, 100) == expectedA.xyz &&
17 clamp(intValues.xyzw, -100, 100) == expectedA.xyzw &&
18 clamp(constVal.x, -100, 100) == expectedA.x &&
19 clamp(constVal.xy, -100, 100) == expectedA.xy &&
20 clamp(constVal.xyz, -100, 100) == expectedA.xyz &&
21 clamp(constVal.xyzw, -100, 100) == expectedA.xyzw &&
22 clamp(intValues.x, clampLow.x, clampHigh.x ) == expectedB.x &&
23 clamp(intValues.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy &&
[all …]
/aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/IR/
DIntrinsicsNVPTX.h682 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
685 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
688 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
691 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
694 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
697 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
700 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
703 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
706 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
709 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/IR/
DIntrinsicsNVPTX.h681 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
684 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
687 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
690 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
693 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
696 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
699 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
702 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
705 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
708 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm/IR/
DIntrinsicsNVPTX.h681 nvvm_suld_1d_array_i16_clamp, // llvm.nvvm.suld.1d.array.i16.clamp
684 nvvm_suld_1d_array_i32_clamp, // llvm.nvvm.suld.1d.array.i32.clamp
687 nvvm_suld_1d_array_i64_clamp, // llvm.nvvm.suld.1d.array.i64.clamp
690 nvvm_suld_1d_array_i8_clamp, // llvm.nvvm.suld.1d.array.i8.clamp
693 nvvm_suld_1d_array_v2i16_clamp, // llvm.nvvm.suld.1d.array.v2i16.clamp
696 nvvm_suld_1d_array_v2i32_clamp, // llvm.nvvm.suld.1d.array.v2i32.clamp
699 nvvm_suld_1d_array_v2i64_clamp, // llvm.nvvm.suld.1d.array.v2i64.clamp
702 nvvm_suld_1d_array_v2i8_clamp, // llvm.nvvm.suld.1d.array.v2i8.clamp
705 nvvm_suld_1d_array_v4i16_clamp, // llvm.nvvm.suld.1d.array.v4i16.clamp
708 nvvm_suld_1d_array_v4i32_clamp, // llvm.nvvm.suld.1d.array.v4i32.clamp
[all …]
/aosp_15_r20/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_sampler.java38 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
39 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder()
85 _RS_ASSERT("minification.getWrapS() == Sampler.Value.CLAMP", in testJavaSide()
86 minification.getWrapS() == Sampler.Value.CLAMP); in testJavaSide()
87 _RS_ASSERT("minification.getWrapT() == Sampler.Value.CLAMP", in testJavaSide()
88 minification.getWrapT() == Sampler.Value.CLAMP); in testJavaSide()
96 _RS_ASSERT("magnification.getWrapS() == Sampler.Value.CLAMP", in testJavaSide()
97 magnification.getWrapS() == Sampler.Value.CLAMP); in testJavaSide()
98 _RS_ASSERT("magnification.getWrapT() == Sampler.Value.CLAMP", in testJavaSide()
99 magnification.getWrapT() == Sampler.Value.CLAMP); in testJavaSide()
[all …]
/aosp_15_r20/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_sampler.java40 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
41 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder()
87 _RS_ASSERT("minification.getWrapS() == Sampler.Value.CLAMP", in testJavaSide()
88 minification.getWrapS() == Sampler.Value.CLAMP); in testJavaSide()
89 _RS_ASSERT("minification.getWrapT() == Sampler.Value.CLAMP", in testJavaSide()
90 minification.getWrapT() == Sampler.Value.CLAMP); in testJavaSide()
98 _RS_ASSERT("magnification.getWrapS() == Sampler.Value.CLAMP", in testJavaSide()
99 magnification.getWrapS() == Sampler.Value.CLAMP); in testJavaSide()
100 _RS_ASSERT("magnification.getWrapT() == Sampler.Value.CLAMP", in testJavaSide()
101 magnification.getWrapT() == Sampler.Value.CLAMP); in testJavaSide()
[all …]
/aosp_15_r20/external/mesa3d/src/gallium/auxiliary/translate/
H A Dtranslate_generic.c267 value |= ((uint32_t)(CLAMP(src[2], 0, 1) * 0x3ff)) & 0x3ff; in emit_B10G10R10A2_UNORM()
268 value |= (((uint32_t)(CLAMP(src[1], 0, 1) * 0x3ff)) & 0x3ff) << 10; in emit_B10G10R10A2_UNORM()
269 value |= (((uint32_t)(CLAMP(src[0], 0, 1) * 0x3ff)) & 0x3ff) << 20; in emit_B10G10R10A2_UNORM()
270 value |= ((uint32_t)(CLAMP(src[3], 0, 1) * 0x3)) << 30; in emit_B10G10R10A2_UNORM()
279 value |= ((uint32_t)CLAMP(src[2], 0, 1023)) & 0x3ff; in emit_B10G10R10A2_USCALED()
280 value |= (((uint32_t)CLAMP(src[1], 0, 1023)) & 0x3ff) << 10; in emit_B10G10R10A2_USCALED()
281 value |= (((uint32_t)CLAMP(src[0], 0, 1023)) & 0x3ff) << 20; in emit_B10G10R10A2_USCALED()
282 value |= ((uint32_t)CLAMP(src[3], 0, 3)) << 30; in emit_B10G10R10A2_USCALED()
291 value |= (uint32_t)(((uint32_t)(CLAMP(src[2], -1, 1) * 0x1ff)) & 0x3ff) ; in emit_B10G10R10A2_SNORM()
292 value |= (uint32_t)((((uint32_t)(CLAMP(src[1], -1, 1) * 0x1ff)) & 0x3ff) << 10) ; in emit_B10G10R10A2_SNORM()
[all …]

12345678910>>...804