/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
|
/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/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/classical/ |
D | main.fragment.glsl | 157 float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0); 162 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 163 …tmpColor += specular* u_dirLights[i].color * clamp(NdotL * pow(halfDotView, u_shininess), 0.0, 2.0… 166 finalColor += clamp(tmpColor, 0.0, 1.0); 184 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 185 float falloff = clamp(u_spotLights[i].intensity / (1.0 + dist2), 0.0, 2.0); 192 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 193 …tmpColor += specular * u_spotLights[i].color * clamp(NdotL * pow(halfDotView, u_shininess) * fallo… 197 finalColor += clamp(tmpColor, 0.0, 1.0); 210 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); [all …]
|
D | pass2.fragment.glsl | 130 float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0); 135 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 136 lightSpecular += u_lightColor * clamp(NdotL * pow(halfDotView, u_shininess), 0.0, 2.0); 160 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 161 float falloff = clamp(u_lightIntensity / (1.0 + dist2), 0.0, 2.0); 168 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 169 …lightSpecular += u_lightColor * clamp(NdotL * pow(halfDotView, u_shininess) * falloff, 0.0, 2.0) *…
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
D | Color.java | 60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1); in Color() 61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1); in Color() 62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1); in Color() 63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1); in Color() 129 …float r = ShaderUtils.clamp(this.rgba[0] * 0.393f + this.rgba[1] * 0.769f + this.rgba[2] * 0.189f,… in toSepia() 130 …float g = ShaderUtils.clamp(this.rgba[0] * 0.349f + this.rgba[1] * 0.686f + this.rgba[2] * 0.168f,… in toSepia() 131 …float b = ShaderUtils.clamp(this.rgba[0] * 0.272f + this.rgba[1] * 0.534f + this.rgba[2] * 0.131f,… in toSepia()
|
D | ShaderUtils.java | 65 …return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int… in mix() 66 ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp( in mix() 83 return ShaderUtils.clamp((x - a) / (b - a), 0, 1); in boxstep() 90 public static final float clamp(final float x, final float a, final float b) { in clamp() method in ShaderUtils 158 x = ShaderUtils.clamp(x, 0, 1) * nspans; in spline() 194 float cutoff = ShaderUtils.clamp(0.5f / swidth, 0, maxFreq); in sinValue() 199 float fade = ShaderUtils.clamp(2 * (cutoff - f) / cutoff, 0, 1); in sinValue()
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Shadow.glsllib | 66 s_00 = clamp(s_00, 0.0, 1.0); 70 s_10 = clamp(s_10, 0.0, 1.0); 74 s_01 = clamp(s_01, 0.0, 1.0); 78 s_11 = clamp(s_11, 0.0, 1.0); 80 float xb0 = mix(s_00, s_10, clamp(bl.x, 0.0, 1.0)); 81 float xb1 = mix(s_01, s_11, clamp(bl.x, 0.0, 1.0)); 82 float yb = mix(xb0, xb1, clamp(bl.y, 0.0, 1.0)); 92 shadow += clamp(Shadow_DoShadowCompareOffset(tex,projCoord,vec2(x,y)) + 102 return clamp(Shadow_DoDither_2x2(tex, projCoord) + Shadow_BorderCheck(projCoord.xy), 0.0, 1.0);
|
/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/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
D | Color.java | 91 clamp(); in Color() 121 return clamp(); in mul() 133 return clamp(); in mul() 145 return clamp(); in add() 157 return clamp(); in sub() 162 public Color clamp () { in clamp() method in Color 194 return clamp(); in set() 219 return clamp(); in add() 235 return clamp(); in sub() 251 return clamp(); in mul() [all …]
|
/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 …]
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/realistic/ |
D | main.fragment.glsl | 192 float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0); 197 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 198 … lightSpecular += u_dirLights[i].color * clamp(NdotL * pow(halfDotView, u_shininess), 0.0, 2.0); 229 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 230 float falloff = clamp(u_spotLights[i].intensity / (1.0 + dist2), 0.0, 2.0); 237 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); 238 …lightSpecular += u_spotLights[i].color * clamp(NdotL * pow(halfDotView, u_shininess) * falloff, 0.… 255 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 256 float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0); 263 float halfDotView = clamp(dot(normal, normalize(lightDir + v_viewVec)), 0.0, 2.0); [all …]
|
/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/libgdx/tests/gdx-tests-android/assets/data/g3d/shaders/ |
D | light_gouraud.glsl | 38 float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0); 47 float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0); 51 //specular += u_dirLights[i].color * clamp(NdotL * pow(halfDotView, shininess), 0.0, 1.0); 81 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 82 …float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0); // FIXME mul intensit… 96 float NdotL = clamp(dot(normal, lightDir), 0.0, 2.0); 97 …float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0); // FIXME mul intensit… 99 float halfDotView = clamp(dot(normal, normalize(lightDir + viewVec)), 0.0, 2.0); 100 …specular += u_pointLights[i].color * clamp(NdotL * pow(halfDotView, shininess) * falloff, 0.0, 2.0…
|
/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/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
D | ScrollPane.java | 81 private boolean clamp = true; field in ScrollPane 188 clamp(); in ScrollPane() 250 void clamp () { in clamp() method in ScrollPane 251 if (!clamp) return; in clamp() 252 scrollX(overscrollX ? MathUtils.clamp(amountX, -overscrollDistance, maxX + overscrollDistance) in clamp() 253 : MathUtils.clamp(amountX, 0, maxX)); in clamp() 254 scrollY(overscrollY ? MathUtils.clamp(amountY, -overscrollDistance, maxY + overscrollDistance) in clamp() 255 : MathUtils.clamp(amountY, 0, maxY)); in clamp() 288 clamp(); in act() 463 scrollX(MathUtils.clamp(amountX, 0, maxX)); in layout() [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/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/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/chromium-trace/catapult/third_party/flot/ |
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
|
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);
|