Home
last modified time | relevance | path

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

12345

/external/skia/src/opts/
DSkBitmapProcState_matrixProcs_neon.cpp18 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
19 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
50 static inline int32x4_t sbpsm_clamp_tile4_low_bits(int32x4_t fx) { in sbpsm_clamp_tile4_low_bits() argument
53 ret = vshrq_n_s32(fx, 12); in sbpsm_clamp_tile4_low_bits()
99 static inline int32x4_t sbpsm_repeat_tile4_low_bits(int32x4_t fx, unsigned max) { in sbpsm_repeat_tile4_low_bits() argument
105 res = vmovn_u32(vreinterpretq_u32_s32(fx)); in sbpsm_repeat_tile4_low_bits()
122 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
126 #define TILEX_PROCF_NEON4(fx, max) sbpsm_clamp_tile4(fx, max) argument
128 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
130 #define TILEX_LOW_BITS_NEON4(fx, max) sbpsm_clamp_tile4_low_bits(fx) argument
[all …]
DSkBitmapProcState_opts_SSE2.cpp255 SkFixed fx; in ClampX_ClampY_filter_scale_SSE2() local
265 fx = SkScalarToFixed(pt.fX) - (one >> 1); in ClampX_ClampY_filter_scale_SSE2()
268 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_filter_scale_SSE2()
269 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { in ClampX_ClampY_filter_scale_SSE2()
273 SkASSERT((fx >> (16 + 14)) == 0); in ClampX_ClampY_filter_scale_SSE2()
274 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); in ClampX_ClampY_filter_scale_SSE2()
275 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
281 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_filter_scale_SSE2()
282 fx + dx, fx); in ClampX_ClampY_filter_scale_SSE2()
294 fx += dx * 4; in ClampX_ClampY_filter_scale_SSE2()
[all …]
DSkBitmapProcState_matrix_neon.h34 SkFractionalInt fx; in SCALE_NOFILTER_NAME() local
39 fx = SkScalarToFractionalInt(pt.fY); in SCALE_NOFILTER_NAME()
41 *xy++ = TILEY_PROCF(SkFractionalIntToFixed(fx), maxY); in SCALE_NOFILTER_NAME()
42 fx = SkScalarToFractionalInt(pt.fX); in SCALE_NOFILTER_NAME()
55 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_NOFILTER_NAME()
56 decal_nofilter_scale_neon(xy, SkFractionalIntToFixed(fx), in SCALE_NOFILTER_NAME()
72 fx1 = fx+dx; in SCALE_NOFILTER_NAME()
76 lbase = vdupq_n_s32(SkFractionalIntToFixed(fx)); in SCALE_NOFILTER_NAME()
96 fx += dx8; in SCALE_NOFILTER_NAME()
103 *xx++ = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); in SCALE_NOFILTER_NAME()
[all …]
/external/skia/src/effects/gradients/
DSkClampRange.cpp56 void SkClampRange::initFor1(SkGradFixed fx) { in initFor1() argument
58 if (fx <= 0) { in initFor1()
60 } else if (fx < kFracMax_SkGradFixed) { in initFor1()
62 fFx1 = fx; in initFor1()
81 int64_t fx = fx0; in init() local
93 int64_t ex = fx + (count - 1) * dx; in init()
95 if ((uint64_t)(fx | ex) <= kFracMax_SkGradFixed) { in init()
101 if (fx <= 0 && ex <= 0) { in init()
106 if (fx >= kFracMax_SkGradFixed && ex >= kFracMax_SkGradFixed) { in init()
119 fx -= dx; in init()
[all …]
DSkLinearGradient.cpp107 unsigned fi = SkGradFixedToFixed(fx) >> SkGradientShaderBase::kCache32Shift; \
109 fx += dx; \
116 typedef void (*LinearShadeProc)(TileProc proc, SkGradFixed dx, SkGradFixed fx,
123 void shadeSpan_linear_vertical_lerp(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_vertical_lerp() argument
130 unsigned fullIndex = proc(SkGradFixedToFixed(fx)); in shadeSpan_linear_vertical_lerp()
146 void shadeSpan_linear_clamp(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_clamp() argument
151 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1); in shadeSpan_linear_clamp()
163 fx = range.fFx1; in shadeSpan_linear_clamp()
184 void shadeSpan_linear_mirror(TileProc proc, SkGradFixed dx, SkGradFixed fx, in shadeSpan_linear_mirror() argument
189 unsigned fi = mirror_8bits(SkGradFixedToFixed(fx) >> 8); in shadeSpan_linear_mirror()
[all …]
DSkRadialGradient.cpp88 SkFixed fx = SkScalarToFixed(sfx) >> 1; in shadeSpan16_radial_clamp() local
98 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
101 fx += dx; in shadeSpan16_radial_clamp()
108 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
112 fx += dx; in shadeSpan16_radial_clamp()
122 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial() argument
126 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); in shadeSpan16_radial()
131 fx += dx; in shadeSpan16_radial()
136 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_mirror() argument
139 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_mirror()
[all …]
/external/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp33 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
34 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
52 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
54 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
60 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { in X()
61 return SkClampMax(fx >> 16, max); in X()
89 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) argument
91 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
96 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { in X()
97 return SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)); in X()
[all …]
DSkBitmapProcState_matrix.h61 SkFractionalInt fx; in SCALE_FILTER_NAME() local
72 fx = SkScalarToFractionalInt(pt.fX) - (SkFixedToFractionalInt(one) >> 1); in SCALE_FILTER_NAME()
76 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_FILTER_NAME()
77 decal_filter_scale(xy, SkFractionalIntToFixed(fx), in SCALE_FILTER_NAME()
83 SkFixed fixedFx = SkFractionalIntToFixed(fx); in SCALE_FILTER_NAME()
85 fx += dx; in SCALE_FILTER_NAME()
105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); in AFFINE_FILTER_NAME() local
115 *xy++ = PACK_FILTER_X_NAME(fx, maxX, oneX PREAMBLE_ARG_X); in AFFINE_FILTER_NAME()
116 fx += dx; in AFFINE_FILTER_NAME()
DSkBitmapProcState_shaderproc.h30 SkFixed fx; in SCALE_FILTER_NAME() local
51 fx = SkScalarToFixed(pt.fX) - (oneX >> 1); in SCALE_FILTER_NAME()
59 unsigned subX = TILEX_LOW_BITS(fx, maxX); in SCALE_FILTER_NAME()
60 unsigned x0 = TILEX_PROCF(fx, maxX); in SCALE_FILTER_NAME()
61 unsigned x1 = TILEX_PROCF((fx + oneX), maxX); in SCALE_FILTER_NAME()
71 fx += dx; in SCALE_FILTER_NAME()
DSkBitmapProcState_utils.h35 SkFixed fx = SkFractionalIntToFixed(frX); in can_truncate_to_fixed_for_decal() local
36 return (unsigned)SkFixedFloorToInt(fx) <= max && in can_truncate_to_fixed_for_decal()
37 (unsigned)SkFixedFloorToInt(fx + dx * (count - 1)) < max; in can_truncate_to_fixed_for_decal()
DSkScan_Antihair.cpp186 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() argument
188 fx += SK_Fixed1/2; in drawCap()
190 int x = fx >> 16; in drawCap()
191 int a = (uint8_t)(fx >> 8); in drawCap()
202 return fx - SK_Fixed1/2; in drawCap()
205 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override { in drawLine() argument
208 fx += SK_Fixed1/2; in drawLine()
210 int x = fx >> 16; in drawLine()
211 int a = (uint8_t)(fx >> 8); in drawLine()
221 return fx - SK_Fixed1/2; in drawLine()
[all …]
DSkBitmapProcState.cpp960 SkFractionalInt fx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
966 fx = SkScalarToFractionalInt(pt.fY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
968 dstY = SkClampMax(SkFractionalIntToInt(fx), maxY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
969 fx = SkScalarToFractionalInt(pt.fX); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
977 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
978 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
982 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
983 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
984 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
985 SkPMColor src3 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
[all …]
DSkBitmapProcState_procs.h320 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
322 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
333 #define TILEX_PROCF(fx, max) (((fx) & 0xFFFF) * ((max) + 1) >> 16) argument
335 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
346 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
348 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
/external/skia/bench/
DInterpBench.cpp54 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
55 SkFixed curr = SkFloatToFixed(fx); in performTest()
73 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
74 int64_t curr = (int64_t)(fx * 65536 * 655536); in performTest()
104 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
105 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); in performTest()
124 void performTest(int16_t dst[], float fx, float dx, int count) override { in performTest() argument
127 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; in performTest()
128 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx; in performTest()
129 tmp = SkFloatToFixed(fx); dst[i + 2] = TILE(tmp, count); fx += dx; in performTest()
[all …]
/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/libedit/src/
Drefresh.c457 re_clear_eol(EditLine *el, int fx, int sx, int diff) in re_clear_eol() argument
461 sx, fx, diff)); in re_clear_eol()
463 if (fx < 0) in re_clear_eol()
464 fx = -fx; in re_clear_eol()
467 if (fx > diff) in re_clear_eol()
468 diff = fx; in re_clear_eol()
506 int fx, sx; in re_update_line() local
634 fx = (int)((nsb - nfd) - (osb - ofd)); in re_update_line()
642 if (fx > 0) { in re_update_line()
658 if (fx < 0) { in re_update_line()
[all …]
/external/pdfium/core/src/fxcrt/
Dfx_basic_coords.cpp430 FX_FLOAT fx = a * dx, fy = b * dx; in TransformXDistance() local
431 return FXSYS_sqrt(fx * fx + fy * fy); in TransformXDistance()
435 FX_FLOAT fx = a * dx, fy = b * dx; in TransformXDistance() local
436 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy)); in TransformXDistance()
440 FX_FLOAT fx = c * dy, fy = d * dy; in TransformYDistance() local
441 return FXSYS_sqrt(fx * fx + fy * fy); in TransformYDistance()
445 FX_FLOAT fx = c * dy, fy = d * dy; in TransformYDistance() local
446 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy)); in TransformYDistance()
450 FX_FLOAT fx = a * dx + c * dy, fy = b * dx + d * dy; in TransformDistance() local
451 return FXSYS_sqrt(fx * fx + fy * fy); in TransformDistance()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c184 float fx = viewport->scale[0] * -1.0 + viewport->translate[0]; in emit_viewport() local
198 fx, in emit_viewport()
219 fx = viewport->scale[0] * 1.0 + viewport->translate[0]; in emit_viewport()
230 if (fx < 0) { in emit_viewport()
231 prescale.translate[0] += fx; in emit_viewport()
232 prescale.scale[0] *= fw / (fw + fx); in emit_viewport()
233 fw += fx; in emit_viewport()
234 fx = 0; in emit_viewport()
249 if (fx + fw > fb_width) { in emit_viewport()
250 prescale.scale[0] *= fw / (fb_width - fx); in emit_viewport()
[all …]
/external/skia/tests/
DClampRangeTest.cpp35 const SkGradFixed fx, SkGradFixed dx, int count) { in slow_check() argument
39 int64_t bigfx = fx; in slow_check()
58 static void test_range(SkFixed fx, SkFixed dx, int count) { in test_range() argument
59 const SkGradFixed gfx = SkFixedToGradFixed(fx); in test_range()
92 SkFixed fx = rand.nextS() >> 1; in DEF_TEST() local
95 SkFixed dx = (sx - fx) / count; in DEF_TEST()
96 test_range(fx, dx, count); in DEF_TEST()
DPathOpsSimplifyDegenerateThreadedTest.cpp31 int fx = f & 0x03; in testSimplifyDegeneratesMain() local
34 != (ey - dy) * (fx - dx)) { in testSimplifyDegeneratesMain()
45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyDegeneratesMain()
55 str += sprintf(str, " path.lineTo(%d, %d);\n", fx, fy); in testSimplifyDegeneratesMain()
/external/eigen/Eigen/src/Core/arch/SSE/
DMathFunctions.h129 Packet4f tmp = _mm_setzero_ps(), 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 = _mm_setzero_pd(), fx; variable
[all …]
/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/webrtc/src/modules/audio_coding/codecs/isac/fix/source/
Dpitch_estimator.c68 static __inline void Intrp1DQ8(WebRtc_Word32 *x, WebRtc_Word32 *fx, WebRtc_Word32 *y, WebRtc_Word32… in Intrp1DQ8() argument
74 if ((fx[0]>0) && (fx[2]>0)) { in Intrp1DQ8()
75 r32=fx[1]-fx[2]; in Intrp1DQ8()
76 q32=fx[0]-fx[1]; in Intrp1DQ8()
102 *fy = WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[0]); /* (Q14 * Q8 >>15)/2 = Q8 */ in Intrp1DQ8()
106 *fy += WEBRTC_SPL_MUL_16_32_RSFT14(tmp16, fx[1]);/* Q14 * Q8 >> 14 = Q8 */ in Intrp1DQ8()
110 *fy += WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[2]);/* (Q14 * Q8 >>15)/2 = Q8 */ in Intrp1DQ8()
113 *fy= fx[1]; in Intrp1DQ8()
/external/opencv/cv/src/
Dcvundistort.cpp53 float fx = intrinsic_matrix[0], fy = intrinsic_matrix[4]; in icvUnDistort_8u_CnR() local
54 float ifx = 1.f/fx, ify = 1.f/fy; in icvUnDistort_8u_CnR()
69 float _x = fx*(x*kr + p1*_2xy + p2*(r2 + 2*x2)) + x0; in icvUnDistort_8u_CnR()
106 float fx, float fy, float cx, float cy, float k1, float k2, uchar *pBuffer );
193 float u0, v0, fx, fy, ifx, ify, x0, y0, k1, k2, k3, p1, p2; in cvInitUndistortMap() local
231 fx = a[0]; fy = a[4]; in cvInitUndistortMap()
232 ifx = 1.f/fx; ify = 1.f/fy; in cvInitUndistortMap()
248 double _x = fx*(x*kr + p1*_2xy + p2*(r2 + 2*x2)) + x0; in cvInitUndistortMap()
277 double fx, fy, u0, v0, k1, k2, k3, p1, p2; in cvInitUndistortRectifyMap() local
341 fx = a[0]; fy = a[4]; in cvInitUndistortRectifyMap()
[all …]
/external/clang/test/OpenMP/
Datomic_update_codegen.cpp20 float fv, fx; variable
190 fx = fx + fv; in main()
532 fx = fx * ulv; in main()

12345