/external/llvm/test/CodeGen/AMDGPU/ |
D | llvm.AMDGPU.clamp.ll | 6 declare float @llvm.AMDGPU.clamp.f32(float, float, float) nounwind readnone 7 declare float @llvm.AMDIL.clamp.f32(float, float, float) nounwind readnone 11 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, [[ARG]] clamp{{$}} 17 %clamp = call float @llvm.AMDGPU.clamp.f32(float %src, float 0.0, float 1.0) nounwind readnone 18 store float %clamp, float addrspace(1)* %out, align 4 24 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, |[[ARG]]| clamp{{$}} 29 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fabs, float 0.0, float 1.0) nounwind readnone 30 store float %clamp, float addrspace(1)* %out, align 4 36 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, -[[ARG]] clamp{{$}} 41 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fneg, float 0.0, float 1.0) nounwind readnone [all …]
|
D | schedule-fs-loop.ll | 33 %17 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 34 %18 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 35 %19 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 36 %20 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 51 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | kcache-fold.ll | 39 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 40 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 41 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 42 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 87 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 88 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 89 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 90 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 99 declare float @llvm.AMDIL.clamp.(float, float, float) readnone
|
D | schedule-fs-loop-nested-if.ll | 47 %27 = call float @llvm.AMDIL.clamp.(float %temp.0, float 0.000000e+00, float 1.000000e+00) 48 %28 = call float @llvm.AMDIL.clamp.(float %temp1.0, float 0.000000e+00, float 1.000000e+00) 49 %29 = call float @llvm.AMDIL.clamp.(float %temp2.0, float 0.000000e+00, float 1.000000e+00) 50 %30 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 77 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | schedule-fs-loop-nested.ll | 46 %30 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 47 %31 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 48 %32 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 49 %33 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 84 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 233 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 235 return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 237 return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 244 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 252 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 254 return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 256 return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 263 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 273 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
|
/external/opencv3/3rdparty/openexr/Imath/ |
D | ImathBoxAlgo.h | 517 exit.y = clamp (r.pos.y + t1 * r.dir.y, b.min.y, b.max.y); in findEntryAndExitPoints() 518 exit.z = clamp (r.pos.z + t1 * r.dir.z, b.min.z, b.max.z); in findEntryAndExitPoints() 526 entry.y = clamp (r.pos.y + t2 * r.dir.y, b.min.y, b.max.y); in findEntryAndExitPoints() 527 entry.z = clamp (r.pos.z + t2 * r.dir.z, b.min.z, b.max.z); in findEntryAndExitPoints() 552 exit.y = clamp (r.pos.y + t1 * r.dir.y, b.min.y, b.max.y); in findEntryAndExitPoints() 553 exit.z = clamp (r.pos.z + t1 * r.dir.z, b.min.z, b.max.z); in findEntryAndExitPoints() 561 entry.y = clamp (r.pos.y + t2 * r.dir.y, b.min.y, b.max.y); in findEntryAndExitPoints() 562 entry.z = clamp (r.pos.z + t2 * r.dir.z, b.min.z, b.max.z); in findEntryAndExitPoints() 591 exit.x = clamp (r.pos.x + t1 * r.dir.x, b.min.x, b.max.x); in findEntryAndExitPoints() 593 exit.z = clamp (r.pos.z + t1 * r.dir.z, b.min.z, b.max.z); in findEntryAndExitPoints() [all …]
|
/external/vulkan-validation-layers/libs/glm/gtc/ |
D | packing.inl | 222 return static_cast<uint8>(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 233 u8vec2 Topack(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 246 int8 Topack(static_cast<int8>(round(clamp(v ,-1.0f, 1.0f) * 127.0f))); 254 return clamp( 261 i8vec2 Topack(round(clamp(v ,-1.0f, 1.0f) * 127.0f)); 269 return clamp( 276 return static_cast<uint16>(round(clamp(s, 0.0f, 1.0f) * 65535.0f)); 287 u16vec4 Topack(round(clamp(v , 0.0f, 1.0f) * 65535.0f)); 300 int16 Topack = static_cast<int16>(round(clamp(v ,-1.0f, 1.0f) * 32767.0f)); 308 return clamp( [all …]
|
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/ |
D | number-handler.js | 21 function clamp(min, max, x) { function 43 return Math.round(clamp(1, Infinity, x)); 50 return numberToString(clamp(min, max, x)); 59 scope.clamp = clamp;
|
D | color-handler.js | 40 function clamp(v) { function 45 x[i] = Math.round(clamp(x[i] / x[3])); 47 x[3] = scope.numberToString(scope.clamp(0, 1, x[3]));
|
/external/libvpx/libvpx/vpx_dsp/ |
D | vpx_dsp_common.h | 44 static INLINE int clamp(int value, int low, int high) { in clamp() function 57 return (uint16_t)clamp(val, 0, 255); in clip_pixel_highbd() 59 return (uint16_t)clamp(val, 0, 1023); in clip_pixel_highbd() 61 return (uint16_t)clamp(val, 0, 4095); in clip_pixel_highbd()
|
/external/deqp/framework/common/ |
D | tcuTexLookupVerifier.cpp | 652 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 653 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 706 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 707 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 708 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 709 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 773 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 774 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 775 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 776 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() [all …]
|
D | tcuTexCompareVerifier.cpp | 66 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); in execCompare() 67 …const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference… in execCompare() 609 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 610 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 611 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 612 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 735 const float minA0 = de::clamp((uBounds0.x()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 736 const float maxA0 = de::clamp((uBounds0.y()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 737 const float minB0 = de::clamp((vBounds0.x()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 738 const float maxB0 = de::clamp((vBounds0.y()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() [all …]
|
D | tcuFuzzyImageCompare.cpp | 65 return (deUint8)de::clamp((int)(v + 0.5f), 0, 255); in roundToUint8Sat() 134 int i0 = de::clamp(x0, 0, w-1); in bilinearSample() 135 int i1 = de::clamp(x1, 0, w-1); in bilinearSample() 136 int j0 = de::clamp(y0, 0, h-1); in bilinearSample() 137 int j1 = de::clamp(y1, 0, h-1); in bilinearSample() 183 deUint32 p = readUnorm8<SrcChannels>(src, de::clamp(i+kx-shiftX, 0, src.getWidth()-1), j); in separableConvolve() 202 deUint32 p = readUnorm8<DstChannels>(tmpAccess, de::clamp(j+ky-shiftY, 0, tmp.getWidth()-1), i); in separableConvolve()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 46 float clamp; member 94 if (offset->clamp) in do_offset_tri() 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri() 96 MIN2(zoffset, offset->clamp); in do_offset_tri() 133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderPackingFunctionTests.cpp | 213 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate() 214 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate() 303 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); in iterate() 304 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); in iterate() 404 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate() 405 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate() 815 …const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, … in iterate() 816 …const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, … in iterate() 817 …const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, … in iterate() 818 …const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, … in iterate() [all …]
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | wrap.inl | 16 GLM_FUNC_QUALIFIER genType clamp function 21 return glm::clamp(Texcoord, genType(0), genType(1)); 25 GLM_FUNC_QUALIFIER detail::tvec2<T, P> clamp function 32 Result[i] = clamp(Texcoord[i]); 37 GLM_FUNC_QUALIFIER detail::tvec3<T, P> clamp function 44 Result[i] = clamp(Texcoord[i]); 49 GLM_FUNC_QUALIFIER detail::tvec4<T, P> clamp function 56 Result[i] = clamp(Texcoord[i]);
|
/external/vulkan-validation-layers/libs/glm/detail/ |
D | func_common.inl | 401 // clamp 403 GLM_FUNC_QUALIFIER genType clamp 412 "'clamp' only accept floating-point or integer inputs"); 418 GLM_FUNC_QUALIFIER detail::tvec2<T, P> clamp function 427 "'clamp' only accept floating-point or integer inputs"); 430 clamp(x.x, minVal, maxVal), 431 clamp(x.y, minVal, maxVal)); 435 GLM_FUNC_QUALIFIER detail::tvec3<T, P> clamp function 444 "'clamp' only accept floating-point or integer inputs"); 447 clamp(x.x, minVal, maxVal), [all …]
|
D | func_packing.inl | 37 u16vec2 Topack(round(clamp(v, 0.0f, 1.0f) * 65535.0f)); 49 i16vec2 Topack(round(clamp(v ,-1.0f, 1.0f) * 32767.0f)); 56 return clamp( 63 u8vec4 Topack(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 75 i8vec4 Topack(round(clamp(v ,-1.0f, 1.0f) * 127.0f)); 82 return clamp(
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderPackingFunctionTests.cpp | 226 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate() 227 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate() 335 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); in iterate() 336 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); in iterate() 451 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate() 452 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate() 930 …const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, … in iterate() 931 …const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, … in iterate() 932 …const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, … in iterate() 933 …const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, … in iterate() [all …]
|
/external/chromium-trace/catapult/third_party/flot/ |
D | jquery.colorhelpers.js | 55 function clamp(min, value, max) { function 59 o.r = clamp(0, parseInt(o.r), 255); 60 o.g = clamp(0, parseInt(o.g), 255); 61 o.b = clamp(0, parseInt(o.b), 255); 62 o.a = clamp(0, o.a, 1);
|
D | jquery.colorhelpers.min.js | 1 …clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=c… function
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicsNVVM.td | 1851 // .clamp variants 1855 "llvm.nvvm.suld.1d.i8.clamp">; 1859 "llvm.nvvm.suld.1d.i16.clamp">; 1863 "llvm.nvvm.suld.1d.i32.clamp">; 1867 "llvm.nvvm.suld.1d.i64.clamp">; 1871 "llvm.nvvm.suld.1d.v2i8.clamp">; 1875 "llvm.nvvm.suld.1d.v2i16.clamp">; 1879 "llvm.nvvm.suld.1d.v2i32.clamp">; 1883 "llvm.nvvm.suld.1d.v2i64.clamp">; 1887 "llvm.nvvm.suld.1d.v4i8.clamp">; [all …]
|
/external/libvpx/libvpx/vpx_dsp/arm/ |
D | loopfilter_16_neon.asm | 152 vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1) 168 ; filter = clamp(filter + 3 * ( qs0 - ps0)) 173 vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3) 174 vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4) 179 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2) 180 vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1) 189 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter) 190 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
|
/external/deqp/modules/glshared/ |
D | glsRasterizationTestUtil.cpp | 719 …const tcu::Vec4 fragmentColorMax = de::clamp(weights.max.x(), 0.0f, 1.0f) * scene.triangles[triNdx… in verifyTriangleGroupInterpolationWithInterpolator() 720 de::clamp(weights.max.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator() 721 de::clamp(weights.max.z(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[2]; in verifyTriangleGroupInterpolationWithInterpolator() 722 …const tcu::Vec4 fragmentColorMin = de::clamp(weights.min.x(), 0.0f, 1.0f) * scene.triangles[triNdx… in verifyTriangleGroupInterpolationWithInterpolator() 723 de::clamp(weights.min.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator() 724 de::clamp(weights.min.z(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[2]; in verifyTriangleGroupInterpolationWithInterpolator() 795 …const tcu::Vec3 colorMinF (de::clamp(valueRangeMin.x() * (float)formatLimit.x(), 0.0f, (float)fo… in verifyTriangleGroupInterpolationWithInterpolator() 796 de::clamp(valueRangeMin.y() * (float)formatLimit.y(), 0.0f, (float)formatLimit.y()), in verifyTriangleGroupInterpolationWithInterpolator() 797 de::clamp(valueRangeMin.z() * (float)formatLimit.z(), 0.0f, (float)formatLimit.z())); in verifyTriangleGroupInterpolationWithInterpolator() 798 …const tcu::Vec3 colorMaxF (de::clamp(valueRangeMax.x() * (float)formatLimit.x(), 0.0f, (float)fo… in verifyTriangleGroupInterpolationWithInterpolator() [all …]
|