/third_party/skia/samplecode/ |
H A D | SamplePatch.cpp | 115 SkPoint* edge0 = storage.get(); in draw() local 116 SkPoint* edge1 = edge0 + nu; in draw() 121 eval_patch_edge(fPts + 0, edge0, nu); in draw() 125 edge3[nv] = edge0[0]; // the last shall be first in draw() 128 // canvas->drawLine(edge0[i].fX, edge0[i].fY, edge0[i+1].fX, edge0[i+1].fY, paint); in draw() 136 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw() 143 eval_sheet(edge0, n in draw() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | sanm.c | 343 static enum GlyphDir which_direction(enum GlyphEdge edge0, enum GlyphEdge edge1) in which_direction() argument 345 if ((edge0 == LEFT_EDGE && edge1 == RIGHT_EDGE) || in which_direction() 346 (edge1 == LEFT_EDGE && edge0 == RIGHT_EDGE) || in which_direction() 347 (edge0 == BOTTOM_EDGE && edge1 != TOP_EDGE) || in which_direction() 348 (edge1 == BOTTOM_EDGE && edge0 != TOP_EDGE)) in which_direction() 350 else if ((edge0 == TOP_EDGE && edge1 != BOTTOM_EDGE) || in which_direction() 351 (edge1 == TOP_EDGE && edge0 != BOTTOM_EDGE)) in which_direction() 353 else if ((edge0 == LEFT_EDGE && edge1 != RIGHT_EDGE) || in which_direction() 354 (edge1 == LEFT_EDGE && edge0 != RIGHT_EDGE)) in which_direction() 356 else if ((edge0 in which_direction() 396 enum GlyphEdge edge0 = which_edge(x0, y0, side_length); make_glyphs() local [all...] |
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
H A D | func_common.hpp | 256 /// Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and 258 /// when edge0 < x < edge1. This is useful in cases where 262 /// t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); 264 /// Results are undefined if edge0 >= edge1. 271 GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x); 274 GLM_FUNC_DECL vecType<T, P> smoothstep(T edge0, T edge1, vecType<T, P> const & x); 277 GLM_FUNC_DECL vecType<T, P> smoothstep(vecType<T, P> const & edge0, vecType<T, P> const & edge1, vecType<T, P> const & x);
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/simd/ |
H A D | common.h | 205 GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_smoothstep(glm_vec4 edge0, glm_vec4 edge1, glm_vec4 x) in glm_vec4_smoothstep() argument 207 glm_vec4 const sub0 = glm_vec4_sub(x, edge0); in glm_vec4_smoothstep() 208 glm_vec4 const sub1 = glm_vec4_sub(edge1, edge0); in glm_vec4_smoothstep()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_builtin_builder.c | 132 nir_smoothstep(nir_builder *b, nir_ssa_def *edge0, nir_ssa_def *edge1, nir_ssa_def *x) in nir_smoothstep() argument 137 /* t = clamp((x - edge0) / (edge1 - edge0), 0, 1) */ in nir_smoothstep() 139 nir_fsat(b, nir_fdiv(b, nir_fsub(b, x, edge0), in nir_smoothstep() 140 nir_fsub(b, edge1, edge0))); in nir_smoothstep()
|
H A D | nir_builtin_builder.h | 44 nir_ssa_def* nir_smoothstep(nir_builder *b, nir_ssa_def *edge0,
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
H A D | simd_vec4.hpp | 306 //! Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and 308 //! when edge0 < x < edge1. This is useful in cases where 312 //! t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); 314 //! Results are undefined if edge0 >= edge1. 318 detail::fvec4SIMD const & edge0, 323 float const & edge0,
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuVectorUtil.hpp | 72 inline float smoothStep (float edge0, float edge1, float x) in smoothStep() argument 74 if (x <= edge0) return 0.0f; in smoothStep() 76 float t = de::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); in smoothStep()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderBuiltinPrecisionTests.cpp | 4386 double applyExact (double edge0, double edge1) const in applyExact() argument 4388 return (edge0 >= edge1) ? TCU_NAN : 0.0; in applyExact() 4391 double precision (const EvalContext&, double, double edge0, double edge1) const in precision() argument 4393 return (edge0 >= edge1) ? TCU_NAN : 0.0; in precision() 4397 ExprP<deFloat16> nanIfGreaterOrEqual(const ExprP<deFloat16>& edge0, const ExprP<deFloat16>& edge1) in nanIfGreaterOrEqual() argument 4399 return app<NanIfGreaterOrEqual< Signature<deFloat16, deFloat16, deFloat16> > >(edge0, edge1); in nanIfGreaterOrEqual() 4402 ExprP<float> nanIfGreaterOrEqual(const ExprP<float>& edge0, const ExprP<float>& edge1) in nanIfGreaterOrEqual() argument 4404 return app<NanIfGreaterOrEqual< Signature<float, float, float> > >(edge0, edge1); in nanIfGreaterOrEqual() 4407 ExprP<double> nanIfGreaterOrEqual(const ExprP<double>& edge0, const ExprP<double>& edge1) in nanIfGreaterOrEqual() argument 4409 return app<NanIfGreaterOrEqual< Signature<double, double, double> > >(edge0, edge in nanIfGreaterOrEqual() 4448 const ExprP<float>& edge0 = args.a; doExpand() local 4461 const ExprP<deFloat16>& edge0 = args.a; doExpand() local 4475 const ExprP<double>& edge0 = args.a; doExpand() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderBuiltinPrecisionTests.cpp | 4375 double applyExact (double edge0, double edge1) const in applyExact() argument 4377 return (edge0 >= edge1) ? TCU_NAN : 0.0; in applyExact() 4380 double precision (const EvalContext&, double, double edge0, double edge1) const in precision() argument 4382 return (edge0 >= edge1) ? TCU_NAN : 0.0; in precision() 4386 ExprP<deFloat16> nanIfGreaterOrEqual(const ExprP<deFloat16>& edge0, const ExprP<deFloat16>& edge1) in nanIfGreaterOrEqual() argument 4388 return app<NanIfGreaterOrEqual< Signature<deFloat16, deFloat16, deFloat16> > >(edge0, edge1); in nanIfGreaterOrEqual() 4391 ExprP<float> nanIfGreaterOrEqual(const ExprP<float>& edge0, const ExprP<float>& edge1) in nanIfGreaterOrEqual() argument 4393 return app<NanIfGreaterOrEqual< Signature<float, float, float> > >(edge0, edge1); in nanIfGreaterOrEqual() 4396 ExprP<double> nanIfGreaterOrEqual(const ExprP<double>& edge0, const ExprP<double>& edge1) in nanIfGreaterOrEqual() argument 4398 return app<NanIfGreaterOrEqual< Signature<double, double, double> > >(edge0, edge in nanIfGreaterOrEqual() 4437 const ExprP<float>& edge0 = args.a; doExpand() local 4450 const ExprP<deFloat16>& edge0 = args.a; doExpand() local 4464 const ExprP<double>& edge0 = args.a; doExpand() local [all...] |
/third_party/skia/src/sksl/ir/ |
H A D | SkSLFunctionCall.cpp | 400 double evaluate_smoothstep(double edge0, double edge1, double x) { in evaluate_smoothstep() argument 401 double t = sk_ieee_double_divide(x - edge0, edge1 - edge0); in evaluate_smoothstep()
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | ShaderCore.cpp | 1222 void ShaderCore::smooth(Vector4f &dst, const Vector4f &edge0, const Vector4f &edge1, const Vector4f &x) in smooth() argument 1224 Float4 tx = Min(Max((x.x - edge0.x) / (edge1.x - edge0.x), Float4(0.0f)), Float4(1.0f)); dst.x = tx * tx * (Float4(3.0f) - Float4(2.0f) * tx); in smooth() 1225 Float4 ty = Min(Max((x.y - edge0.y) / (edge1.y - edge0.y), Float4(0.0f)), Float4(1.0f)); dst.y = ty * ty * (Float4(3.0f) - Float4(2.0f) * ty); in smooth() 1226 Float4 tz = Min(Max((x.z - edge0.z) / (edge1.z - edge0.z), Float4(0.0f)), Float4(1.0f)); dst.z = tz * tz * (Float4(3.0f) - Float4(2.0f) * tz); in smooth() 1227 Float4 tw = Min(Max((x.w - edge0.w) / (edge1.w - edge0.w), Float4(0.0f)), Float4(1.0f)); dst.w = tw * tw * (Float4(3.0f) - Float4(2.0f) * tw); in smooth()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderGLSLstd450.cpp | 214 auto edge0 = Operand(this, state, insn.word(5)); in EmitExtGLSLstd450() local 219 auto tx = Min(Max((x.Float(i) - edge0.Float(i)) / in EmitExtGLSLstd450() 220 (edge1.Float(i) - edge0.Float(i)), in EmitExtGLSLstd450()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | IntermNode.cpp | 3949 float edge0 = unionArrays[0][i].getFConst(); 3952 // Results are undefined if edge0 >= edge1. 3953 if (edge0 >= edge1) 3960 // Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth 3961 // Hermite interpolation between 0 and 1 when edge0 < x < edge1. 3962 float t = gl::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f);
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_xfade.c | 258 static inline float smoothstep(float edge0, float edge1, float x) in smoothstep() argument 262 t = av_clipf((x - edge0) / (edge1 - edge0), 0.f, 1.f); in smoothstep()
|
/third_party/skia/src/sksl/codegen/ |
H A D | SkSLVMCodeGenerator.cpp | 1200 return ternary([](skvm::F32 edge0, skvm::F32 edge1, skvm::F32 x) { 1201 skvm::F32 t = skvm::clamp01((x - edge0) / (edge1 - edge0));
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsBuiltinPrecisionTests.cpp | 3480 const ExprP<float>& edge0 = args.a; in doExpand() local 3483 const ExprP<float> tExpr = clamp((x - edge0) / (edge1 - edge0), in doExpand()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmInstructionTests.cpp | 15766 const fp16type edge0 (*in[0]); 15771 if (edge0.isNaN() || edge1.isNaN() || x.isNaN() || edge0.asDouble() >= edge1.asDouble()) 15774 if (edge0.isInf() || edge1.isInf() || x.isInf()) 15779 const float edge0d (edge0.asFloat()); 15788 const double edge0d (edge0.asDouble()); 15811 const double edge0d (edge0.asDouble());
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmInstructionTests.cpp | 15668 const fp16type edge0 (*in[0]); 15673 if (edge0.isNaN() || edge1.isNaN() || x.isNaN() || edge0.asDouble() >= edge1.asDouble()) 15676 if (edge0.isInf() || edge1.isInf() || x.isInf()) 15681 const float edge0d (edge0.asFloat()); 15690 const double edge0d (edge0.asDouble()); 15713 const double edge0d (edge0.asDouble());
|
/third_party/mesa3d/src/compiler/glsl/ |
H A D | builtin_functions.cpp | 6152 ir_variable *edge0 = in_var(edge_type, "edge0"); in _smoothstep() local 6155 MAKE_SIG(x_type, avail, 3, edge0, edge1, x); in _smoothstep() 6160 * t = clamp((x - edge0) / (edge1 - edge0), 0, 1); in _smoothstep() 6165 body.emit(assign(t, clamp(div(sub(x, edge0), sub(edge1, edge0)), in _smoothstep()
|