Home
last modified time | relevance | path

Searched refs:fx (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/external/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp31 static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, in can_truncate_to_fixed_for_decal() argument
49 if ((unsigned)SkFixedFloorToInt(fx) >= max) { in can_truncate_to_fixed_for_decal()
54 const uint64_t lastFx = fx + sk_64_mul(dx, count - 1); in can_truncate_to_fixed_for_decal()
65 static void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_nofilter_scale() argument
67 *dst++ = pack_two_shorts( (fx + 0) >> 16, in decal_nofilter_scale()
68 (fx + dx) >> 16); in decal_nofilter_scale()
69 fx += dx+dx; in decal_nofilter_scale()
74 *xx++ = SkToU16(fx >> 16); in decal_nofilter_scale()
75 fx += dx; in decal_nofilter_scale()
87 SkFractionalInt fx; in nofilter_scale() local
[all …]
DSkBitmapProcState.cpp35 SkFractionalInt fx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
41 fx = mapper.fractionalIntX(); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
49 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
50 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
54 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
55 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
56 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
57 SkPMColor src3 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
65 unsigned index = SkFractionalIntToInt(fx); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
68 fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
[all …]
DSkScan_Antihair.cpp188 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() argument
190 fx += SK_Fixed1/2; in drawCap()
192 int x = fx >> 16; in drawCap()
193 int a = (uint8_t)((fx >> 8) & 0xFF); in drawCap()
204 return fx - SK_Fixed1/2; in drawCap()
207 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override { in drawLine() argument
210 fx += SK_Fixed1/2; in drawLine()
212 int x = fx >> 16; in drawLine()
213 int a = (uint8_t)((fx >> 8) & 0xFF); in drawLine()
223 return fx - SK_Fixed1/2; in drawLine()
[all …]
/external/skqp/src/core/
DSkBitmapProcState_matrixProcs.cpp31 static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, in can_truncate_to_fixed_for_decal() argument
49 if ((unsigned)SkFixedFloorToInt(fx) >= max) { in can_truncate_to_fixed_for_decal()
54 const uint64_t lastFx = fx + sk_64_mul(dx, count - 1); in can_truncate_to_fixed_for_decal()
65 static void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_nofilter_scale() argument
67 *dst++ = pack_two_shorts( (fx + 0) >> 16, in decal_nofilter_scale()
68 (fx + dx) >> 16); in decal_nofilter_scale()
69 fx += dx+dx; in decal_nofilter_scale()
74 *xx++ = SkToU16(fx >> 16); in decal_nofilter_scale()
75 fx += dx; in decal_nofilter_scale()
87 SkFractionalInt fx; in nofilter_scale() local
[all …]
DSkBitmapProcState.cpp35 SkFractionalInt fx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
41 fx = mapper.fractionalIntX(); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
49 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
50 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
54 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
55 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
56 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
57 SkPMColor src3 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
65 unsigned index = SkFractionalIntToInt(fx); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
68 fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
[all …]
DSkScan_Antihair.cpp188 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() argument
190 fx += SK_Fixed1/2; in drawCap()
192 int x = fx >> 16; in drawCap()
193 int a = (uint8_t)(fx >> 8); in drawCap()
204 return fx - SK_Fixed1/2; in drawCap()
207 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override { in drawLine() argument
210 fx += SK_Fixed1/2; in drawLine()
212 int x = fx >> 16; in drawLine()
213 int a = (uint8_t)(fx >> 8); in drawLine()
223 return fx - SK_Fixed1/2; in drawLine()
[all …]
/external/skqp/bench/
DInterpBench.cpp62 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
63 SkFixed curr = SkFloatToFixed(fx); in performTest()
81 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
82 int64_t curr = (int64_t)(fx * 65536 * 655536); in performTest()
112 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
113 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); in performTest()
132 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
135 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; in performTest()
136 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx; in performTest()
137 tmp = SkFloatToFixed(fx); dst[i + 2] = TILE(tmp, count); fx += dx; in performTest()
[all …]
/external/skia/bench/
DInterpBench.cpp62 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
63 SkFixed curr = SkFloatToFixed(fx); in performTest()
81 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
82 int64_t curr = (int64_t)(fx * 65536 * 655536); in performTest()
112 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
113 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); in performTest()
132 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
135 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; in performTest()
136 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx; in performTest()
137 tmp = SkFloatToFixed(fx); dst[i + 2] = TILE(tmp, count); fx += dx; in performTest()
[all …]
/external/llvm/test/CodeGen/X86/
Dswitch-edge-weight.ll37 ; CHECK: Successors according to CFG: BB#4({{[0-9a-fx/= ]+}}72.22%) BB#5({{[0-9a-fx/= ]+}}27.78%)
42 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}76.92%) BB#7({{[0-9a-fx/= ]+}}23.08%)
47 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}40.00%) BB#6({{[0-9a-fx/= ]+}}60.00%)
52 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}66.67%) BB#2({{[0-9a-fx/= ]+}}33.33%)
105 ; CHECK: Successors according to CFG: BB#6({{[0-9a-fx/= ]+}}7.14%) BB#8({{[0-9a-fx/= ]+}}92.86%
114 …-fx/= ]+}}15.38%) BB#6({{[0-9a-fx/= ]+}}7.69%) BB#2({{[0-9a-fx/= ]+}}15.38%) BB#3({{[0-9a-fx/= ]+}…
166 ; CHECK: Successors according to CFG: BB#6({{[0-9a-fx/= ]+}}16.67%) BB#8({{[0-9a-fx/= ]+}}83.33%)
174 …: BB#1({{[0-9a-fx/= ]+}}20.00%) BB#2({{[0-9a-fx/= ]+}}20.00%) BB#3({{[0-9a-fx/= ]+}}20.00%) BB#4({…
219 ; CHECK: Successors according to CFG: BB#6({{[0-9a-fx/= ]+}}28.57%) BB#7({{[0-9a-fx/= ]+}}71.43%)
224 ; CHECK: Successors according to CFG: BB#2({{[0-9a-fx/= ]+}}60.00%) BB#3({{[0-9a-fx/= ]+}}40.00%)
[all …]
Dswitch-jump-table.ll58 ; CHECK-JT-PROB: Successors according to CFG: BB#6({{[0-9a-fx/= ]+}}14.29%) BB#8({{[0-9a-fx/= ]+}}8…
59 …: BB#1({{[0-9a-fx/= ]+}}16.67%) BB#2({{[0-9a-fx/= ]+}}16.67%) BB#3({{[0-9a-fx/= ]+}}16.67%) BB#4({…
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/
DBrentOptimizer.java107 double fx = computeObjectiveValue(x); in localMin() local
109 fx = -fx; in localMin()
111 double fv = fx; in localMin()
112 double fw = fx; in localMin()
127 r = (x - w) * (fx - fv); in localMin()
128 q = (x - v) * (fx - fw); in localMin()
192 if (fu <= fx) { in localMin()
201 fw = fx; in localMin()
203 fx = fu; in localMin()
221 setFunctionValue(isMinim ? fx : -fx); in localMin()
/external/skqp/src/shaders/gradients/
DSk4fLinearGradient.cpp53 SkScalar pinFx<SkShader::kClamp_TileMode>(SkScalar fx) { in pinFx() argument
54 return fx; in pinFx()
58 SkScalar pinFx<SkShader::kRepeat_TileMode>(SkScalar fx) { in pinFx() argument
59 SkScalar f = SkScalarIsFinite(fx) ? SkScalarFraction(fx) : 0; in pinFx()
69 SkScalar pinFx<SkShader::kMirror_TileMode>(SkScalar fx) { in pinFx() argument
70 SkScalar f = SkScalarIsFinite(fx) ? SkScalarMod(fx, 2.0f) : 0; in pinFx()
105 SkLinearGradient::LinearGradient4fContext::findInterval(SkScalar fx) const { in findInterval()
106 SkASSERT(in_range(fx, fIntervals->front().fT0, fIntervals->back().fT1)); in findInterval()
113 while (!in_range(fx, fCachedInterval->fT0, fCachedInterval->fT1)) { in findInterval()
129 SkASSERT(in_range(fx, i0->fT0, i1->fT1)); in findInterval()
[all …]
/external/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp53 SkScalar pinFx<SkShader::kClamp_TileMode>(SkScalar fx) { in pinFx() argument
54 return fx; in pinFx()
58 SkScalar pinFx<SkShader::kRepeat_TileMode>(SkScalar fx) { in pinFx() argument
59 SkScalar f = SkScalarIsFinite(fx) ? SkScalarFraction(fx) : 0; in pinFx()
69 SkScalar pinFx<SkShader::kMirror_TileMode>(SkScalar fx) { in pinFx() argument
70 SkScalar f = SkScalarIsFinite(fx) ? SkScalarMod(fx, 2.0f) : 0; in pinFx()
105 SkLinearGradient::LinearGradient4fContext::findInterval(SkScalar fx) const { in findInterval()
106 SkASSERT(in_range(fx, fIntervals->front().fT0, fIntervals->back().fT1)); in findInterval()
113 while (!in_range(fx, fCachedInterval->fT0, fCachedInterval->fT1)) { in findInterval()
129 SkASSERT(in_range(fx, i0->fT0, i1->fT1)); in findInterval()
[all …]
/external/tensorflow/tensorflow/contrib/resampler/kernels/
Dresampler_ops_gpu.cu.cc78 const int fx = std::floor(static_cast<float>(x)); in Resampler2DKernel() local
80 const int cx = fx + 1; in Resampler2DKernel()
86 (fx >= 0 && fy >= 0) ? dx * dy * GET_DATA_POINT(fx, fy) : zero; in Resampler2DKernel()
92 const T img_fxcy = (fx >= 0 && cy <= data_height - 1) in Resampler2DKernel()
93 ? dx * (one - dy) * GET_DATA_POINT(fx, cy) in Resampler2DKernel()
189 const int fx = std::floor(static_cast<float>(x)); in ResamplerGrad2DKernel() local
191 const int cx = fx + 1; in ResamplerGrad2DKernel()
196 const T img_fxfy = (fx >= 0 && fy >= 0) ? GET_DATA_POINT(fx, fy) : zero; in ResamplerGrad2DKernel()
203 (fx >= 0 && cy <= data_height - 1) ? GET_DATA_POINT(fx, cy) : zero; in ResamplerGrad2DKernel()
217 if (fx >= 0 && fy >= 0) { in ResamplerGrad2DKernel()
[all …]
/external/eigen/Eigen/src/Core/arch/NEON/
DMathFunctions.h23 Packet4f tmp, fx; variable
44 fx = vmlaq_f32(p4f_half, x, p4f_cephes_LOG2EF);
47 tmp = vcvtq_f32_s32(vcvtq_s32_f32(fx));
50 Packet4ui mask = vcgtq_f32(tmp, fx);
53 fx = vsubq_f32(tmp, vreinterpretq_f32_u32(mask));
55 tmp = vmulq_f32(fx, p4f_cephes_exp_C1);
56 Packet4f z = vmulq_f32(fx, p4f_cephes_exp_C2);
78 mm = vcvtq_s32_f32(fx);
/external/eigen/Eigen/src/Core/arch/AltiVec/
DMathFunctions.h160 Packet4f tmp, fx; variable
167 fx = pmadd(x, p4f_cephes_LOG2EF, p4f_half);
169 fx = pfloor(fx);
171 tmp = pmul(fx, p4f_cephes_exp_C1);
172 Packet4f z = pmul(fx, p4f_cephes_exp_C2);
188 emm0 = vec_cts(fx, 0);
252 Packet2d tmp, fx; variable
259 fx = pmadd(x, p2d_cephes_LOG2EF, p2d_half);
261 fx = pfloor(fx);
263 tmp = pmul(fx, p2d_cephes_exp_C1);
[all …]
/external/eigen/Eigen/src/Core/arch/SSE/
DMathFunctions.h129 Packet4f tmp, fx; variable
136 fx = pmadd(x, p4f_cephes_LOG2EF, p4f_half);
139 fx = _mm_floor_ps(fx);
141 emm0 = _mm_cvttps_epi32(fx);
144 Packet4f mask = _mm_cmpgt_ps(tmp, fx);
146 fx = psub(tmp, mask);
149 tmp = pmul(fx, p4f_cephes_exp_C1);
150 Packet4f z = pmul(fx, p4f_cephes_exp_C2);
166 emm0 = _mm_cvttps_epi32(fx);
198 Packet2d tmp, fx; variable
[all …]
/external/llvm/test/CodeGen/Generic/
DMachineBranchProb.ll19 ; CHECK: Successors according to CFG: BB#2({{[0-9a-fx/= ]+}}75.29%) BB#4({{[0-9a-fx/= ]+}}24.71%)
21 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}47.62%) BB#5({{[0-9a-fx/= ]+}}52.38%)
23 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}36.36%) BB#3({{[0-9a-fx/= ]+}}63.64%)
65 ; CHECK: Successors according to CFG: BB#8({{[0-9a-fx/= ]+}}39.71%) BB#9({{[0-9a-fx/= ]+}}60.29%)
/external/eigen/Eigen/src/Core/arch/ZVector/
DMathFunctions.h49 Packet2d tmp, fx; variable
55 fx = pmadd(p2d_cephes_LOG2EF, x, p2d_half);
57 fx = vec_floor(fx);
59 tmp = pmul(fx, p2d_cephes_exp_C1);
60 Packet2d z = pmul(fx, p2d_cephes_exp_C2);
80 emm0 = vec_ctsl(fx, 0);
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
DMergeConsecutiveStores.ll18 @fx = common global %struct.X zeroinitializer, align 4
37 %0 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 0), align 4
38 %1 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 1), align 4
39 %2 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 2), align 4
40 %3 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 3), align 4
59 %0 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 0), align 16
60 %1 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 1), align 4
61 %2 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 2), align 4
62 %3 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 3), align 4
/external/llvm/test/CodeGen/PowerPC/
DMergeConsecutiveStores.ll18 @fx = common global %struct.X zeroinitializer, align 4
37 %0 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 0), align 4
38 %1 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 1), align 4
39 %2 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 2), align 4
40 %3 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 3), align 4
59 %0 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 0), align 16
60 %1 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 1), align 4
61 %2 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 2), align 4
62 %3 = load i32, i32* getelementptr inbounds (%struct.X, %struct.X* @fx, i32 0, i32 3), align 4
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c406 float fx = viewport->scale[0] * -1.0f + viewport->translate[0]; in emit_viewport() local
421 fx, in emit_viewport()
449 fx = viewport->scale[0] * 1.0f + viewport->translate[0]; in emit_viewport()
467 if (fx < 0) { in emit_viewport()
468 prescale.translate[0] += fx; in emit_viewport()
469 prescale.scale[0] *= fw / (fw + fx); in emit_viewport()
470 fw += fx; in emit_viewport()
471 fx = 0.0f; in emit_viewport()
486 if (fx + fw > fb_width) { in emit_viewport()
487 prescale.scale[0] *= fw / (fb_width - fx); in emit_viewport()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dpitch_estimator.c52 static __inline void Intrp1DQ8(int32_t *x, int32_t *fx, int32_t *y, int32_t *fy) { in Intrp1DQ8() argument
58 if ((fx[0]>0) && (fx[2]>0)) { in Intrp1DQ8()
59 r32=fx[1]-fx[2]; in Intrp1DQ8()
60 q32=fx[0]-fx[1]; in Intrp1DQ8()
87 *fy = WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[0]); /* (Q14 * Q8 >>15)/2 = Q8 */ in Intrp1DQ8()
91 *fy += WEBRTC_SPL_MUL_16_32_RSFT14(tmp16, fx[1]);/* Q14 * Q8 >> 14 = Q8 */ in Intrp1DQ8()
95 *fy += WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[2]);/* (Q14 * Q8 >>15)/2 = Q8 */ in Intrp1DQ8()
98 *fy= fx[1]; in Intrp1DQ8()
/external/mesa3d/src/mesa/swrast/
Ds_aalinetemp.h40 const GLfloat fx = (GLfloat) ix; in NAME() local
60 line->span.array->z[i] = (GLuint) solve_plane(fx, fy, line->zPlane); in NAME()
62 line->span.array->rgba[i][RCOMP] = solve_plane_chan(fx, fy, line->rPlane); in NAME()
63 line->span.array->rgba[i][GCOMP] = solve_plane_chan(fx, fy, line->gPlane); in NAME()
64 line->span.array->rgba[i][BCOMP] = solve_plane_chan(fx, fy, line->bPlane); in NAME()
65 line->span.array->rgba[i][ACOMP] = solve_plane_chan(fx, fy, line->aPlane); in NAME()
73 const GLfloat invQ = solve_plane_recip(fx, fy, line->attrPlane[attr][3]); in NAME()
76 attribArray[i][c] = solve_plane(fx, fy, line->attrPlane[attr][c]) * invQ; in NAME()
85 const GLfloat invW = solve_plane_recip(fx, fy, line->wPlane); in NAME()
88 attribArray[i][c] = solve_plane(fx, fy, line->attrPlane[attr][c]) * invW; in NAME()
/external/lzma/CPP/7zip/UI/FileManager/
DOverwriteDialog.rc11 #undef fx
14 #define fx (xc - iconSize - m)
28 LTEXT "", IDT_OVERWRITE_OLD_FILE_SIZE_TIME, x, 44, fx, fy, SS_NOPREFIX
33 LTEXT "", IDT_OVERWRITE_NEW_FILE_SIZE_TIME, x, 114, fx, fy, SS_NOPREFIX
70 LTEXT "", IDT_OVERWRITE_OLD_FILE_SIZE_TIME, x, 20, fx, fy, SS_NOPREFIX
75 LTEXT "", IDT_OVERWRITE_NEW_FILE_SIZE_TIME, x, 72, fx, fy, SS_NOPREFIX

12345678910>>...16