Lines Matching refs:p0
69 static float4 cubicInterpolate(float4 p0,float4 p1,float4 p2,float4 p3, float x) {
70 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
71 + x * (3.f * (p1 - p2) + p3 - p0)));
74 static float2 cubicInterpolate(float2 p0,float2 p1,float2 p2,float2 p3, float x) {
75 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
76 + x * (3.f * (p1 - p2) + p3 - p0)));
79 static float cubicInterpolate(float p0,float p1,float p2,float p3 , float x) {
80 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
81 + x * (3.f * (p1 - p2) + p3 - p0)));
94 float4 p0 = cubicInterpolate(convert_float4(yp0[xs0]),
114 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
129 float2 p0 = cubicInterpolate(convert_float2(yp0[xs0]),
149 float2 p = cubicInterpolate(p0, p1, p2, p3, yf);
164 float p0 = cubicInterpolate((float)yp0[xs0], (float)yp0[xs1],
173 float p = cubicInterpolate(p0, p1, p2, p3, yf);