Searched refs:fx (Results 1 - 25 of 113) sorted by relevance

12345

/external/clang/test/CodeGenCXX/
H A Ddebug-info-fn-template.cpp9 T fx(XF<T> xi) { function
15 template int fx(XF<int>);
/external/v8/test/mjsunit/regress/
H A Dregress-187.js30 assertEquals(["f", undefined], "foo".match(/(?:(?=(f)o)fx|)./));
H A Dregress-176.js49 "foo".match(/(?:(?=(f)o)fx)?./),
/external/skia/src/core/
H A DSkBitmapProcState_utils.h14 * 2. [fx, fx+dx, fx+2dx, fx+3dx, ... fx+(count-1)dx] are all <= maxX
35 SkFixed fx = SkFractionalIntToFixed(frX); local
36 return (unsigned)SkFixedFloorToInt(fx) <= max &&
37 (unsigned)SkFixedFloorToInt(fx + dx * (count - 1)) < max;
H A DSkBitmapProcState_matrix_template.h23 SkFractionalInt fx; local
28 fx = SkScalarToFractionalInt(pt.fY);
30 *xy++ = TileProc::Y(s, SkFractionalIntToFixed(fx), maxY);
31 fx = SkScalarToFractionalInt(pt.fX);
42 if (tryDecal && can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) {
43 decal_nofilter_scale(xy, SkFractionalIntToFixed(fx),
49 a = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx;
50 b = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx
88 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); local
[all...]
H A 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)
54 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF)
60 static unsigned X(const SkBitmapProcState&, SkFixed fx, int max) { argument
61 return SkClampMax(fx >> 16, max);
89 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx)
96 X(const SkBitmapProcState&, SkFixed fx, int max) argument
130 X(const SkBitmapProcState& s, SkFixed fx, int max) argument
250 decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) argument
267 decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) argument
[all...]
H A DSkBitmapProcState_shaderproc.h30 SkFixed fx; local
50 // now initialize fx
51 fx = SkScalarToFixed(pt.fX) - (oneX >> 1);
59 unsigned subX = TILEX_LOW_BITS(fx, maxX);
60 unsigned x0 = TILEX_PROCF(fx, maxX);
61 unsigned x1 = TILEX_PROCF((fx + oneX), maxX);
71 fx += dx;
H A DSkBitmapProcState_matrix.h61 SkFractionalInt fx; local
71 // now initialize fx
72 fx = SkScalarToFractionalInt(pt.fX) - (SkFixedToFractionalInt(one) >> 1);
76 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) {
77 decal_filter_scale(xy, SkFractionalIntToFixed(fx),
83 SkFixed fixedFx = SkFractionalIntToFixed(fx);
85 fx += dx;
105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local
115 *xy++ = PACK_FILTER_X_NAME(fx, maxX, oneX PREAMBLE_ARG_X);
116 fx
[all...]
/external/skia/src/opts/
H A 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);
21 // TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
35 // TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
50 static inline int32x4_t sbpsm_clamp_tile4_low_bits(int32x4_t fx) { argument
53 ret = vshrq_n_s32(fx, 12);
63 // TILEX_PROCF(fx, max) (((fx)
99 sbpsm_repeat_tile4_low_bits(int32x4_t fx, unsigned max) argument
150 decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) argument
185 decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) argument
[all...]
H A DSkBitmapProcState_opts_SSE2.cpp255 SkFixed fx; local
264 // now initialize fx
265 fx = SkScalarToFixed(pt.fX) - (one >> 1);
268 if (dx > 0 && (unsigned)(fx >> 16) <= maxX &&
269 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) {
273 SkASSERT((fx >> (16 + 14)) == 0);
274 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1);
275 fx += dx;
281 __m128i wide_fx = _mm_set_epi32(fx
377 SkFixed fx; local
499 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local
573 SkFixed fx = SkScalarToFixed(srcPt.fX); local
[all...]
H A DSkBitmapProcState_matrix_neon.h34 SkFractionalInt fx; local
39 fx = SkScalarToFractionalInt(pt.fY);
41 *xy++ = TILEY_PROCF(SkFractionalIntToFixed(fx), maxY);
42 fx = SkScalarToFractionalInt(pt.fX);
55 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) {
56 decal_nofilter_scale_neon(xy, SkFractionalIntToFixed(fx),
67 // now build fx/fx+dx/fx+2dx/fx
121 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); local
299 SkFractionalInt fx; local
368 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local
[all...]
/external/skia/src/effects/gradients/
H A DSkClampRange.cpp56 void SkClampRange::initFor1(SkGradFixed fx) { argument
58 if (fx <= 0) {
60 } else if (fx < kFracMax_SkGradFixed) {
62 fFx1 = fx;
81 int64_t fx = fx0; local
93 int64_t ex = fx + (count - 1) * dx;
95 if ((uint64_t)(fx | ex) <= kFracMax_SkGradFixed) {
101 if (fx <= 0 && ex <= 0) {
106 if (fx >= kFracMax_SkGradFixed && ex >= kFracMax_SkGradFixed) {
119 fx
[all...]
H A DSkClampRange.h21 * Iteration fixed fx by dx, clamping as you go to [0..kFracMax_SkGradFixed], this class
25 * range1: iterate as usual fx += dx
32 SkGradFixed fFx1; // initial fx value for the fCount1 range.
36 void init(SkGradFixed fx, SkGradFixed dx, int count, int v0, int v1);
48 void initFor1(SkGradFixed fx);
H A 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, argument
130 unsigned fullIndex = proc(SkGradFixedToFixed(fx));
146 void shadeSpan_linear_clamp(TileProc proc, SkGradFixed dx, SkGradFixed fx, argument
151 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1);
163 fx = range.fFx1;
184 void shadeSpan_linear_mirror(TileProc proc, SkGradFixed dx, SkGradFixed fx, argument
189 unsigned fi = mirror_8bits(SkGradFixedToFixed(fx) >>
197 shadeSpan_linear_repeat(TileProc proc, SkGradFixed dx, SkGradFixed fx, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int toggle, int count) argument
227 SkGradFixed dx, fx = SkScalarToGradFixed(srcPt.fX); local
319 shadeSpan16_linear_vertical(TileProc proc, SkGradFixed dx, SkGradFixed fx, uint16_t* SK_RESTRICT dstC, const uint16_t* SK_RESTRICT cache, int toggle, int count) argument
368 shadeSpan16_linear_mirror(TileProc proc, SkGradFixed dx, SkGradFixed fx, uint16_t* SK_RESTRICT dstC, const uint16_t* SK_RESTRICT cache, int toggle, int count) argument
416 SkGradFixed dx, fx = SkScalarToGradFixed(srcPt.fX); local
[all...]
H A DSkRadialGradient.cpp88 SkFixed fx = SkScalarToFixed(sfx) >> 1; local
98 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
101 fx += dx;
108 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1);
112 fx += dx;
122 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, argument
126 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy));
131 fx += dx;
136 void shadeSpan16_radial_mirror(SkScalar fx, SkScala argument
142 shadeSpan16_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, uint16_t* SK_RESTRICT dstC, const uint16_t* SK_RESTRICT cache, int toggle, int count) argument
273 radial_completely_pinned(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy) argument
352 shadeSpan_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument
366 shadeSpan_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument
372 shadeSpan_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/
H A DBrentOptimizer.java107 double fx = computeObjectiveValue(x);
109 fx = -fx;
111 double fv = fx;
112 double fw = fx;
127 r = (x - w) * (fx - fv);
128 q = (x - v) * (fx - fw);
192 if (fu <= fx) {
201 fw = fx;
203 fx
[all...]
/external/skia/bench/
H A DInterpBench.cpp54 void performTest(int16_t dst[], float fx, float dx, int count) override {
55 SkFixed curr = SkFloatToFixed(fx);
73 void performTest(int16_t dst[], float fx, float dx, int count) override {
74 int64_t curr = (int64_t)(fx * 65536 * 655536);
104 void performTest(int16_t dst[], float fx, float dx, int count) override {
105 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536);
124 void performTest(int16_t dst[], float fx, float dx, int count) override {
127 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx;
128 tmp = SkFloatToFixed(fx); ds
[all...]
/external/skia/tests/
H A DClampRangeTest.cpp35 const SkGradFixed fx, SkGradFixed dx, int count) {
38 // If dx is large, fx will overflow if updated naively. So we use more bits.
39 int64_t bigfx = fx;
58 static void test_range(SkFixed fx, SkFixed dx, int count) { argument
59 const SkGradFixed gfx = SkFixedToGradFixed(fx);
92 SkFixed fx = rand.nextS() >> 1; local
95 SkFixed dx = (sx - fx) / count;
96 test_range(fx, dx, count);
103 SkFixed fx = rand.nextS();
106 test_range(fx, d
34 slow_check(const SkClampRange& range, const SkGradFixed fx, SkGradFixed dx, int count) argument
[all...]
H A DPathOpsSimplifyDegenerateThreadedTest.cpp31 int fx = f & 0x03; local
34 != (ey - dy) * (fx - dx)) {
45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy));
55 str += sprintf(str, " path.lineTo(%d, %d);\n", fx, fy);
/external/libedit/src/
H A Drefresh.c452 * the line. fx and sx is the number of characters inserted or deleted
457 re_clear_eol(EditLine *el, int fx, int sx, int diff) argument
460 ELRE_DEBUG(1, (__F, "re_clear_eol sx %d, fx %d, diff %d\n",
461 sx, fx, diff));
463 if (fx < 0)
464 fx = -fx;
467 if (fx > diff)
468 diff = fx;
506 int fx, s local
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_framebuffer.c184 float fx = viewport->scale[0] * -1.0 + viewport->translate[0]; local
197 "\ninitial %f,%f %fx%f\n",
198 fx,
219 fx = viewport->scale[0] * 1.0 + viewport->translate[0];
230 if (fx < 0) {
231 prescale.translate[0] += fx;
232 prescale.scale[0] *= fw / (fw + fx);
233 fw += fx;
234 fx = 0;
249 if (fx
[all...]
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_coords.cpp430 FX_FLOAT fx = a * dx, fy = b * dx;
431 return FXSYS_sqrt(fx * fx + fy * fy);
435 FX_FLOAT fx = a * dx, fy = b * dx;
436 return FXSYS_round(FXSYS_sqrt(fx * fx + fy * fy));
440 FX_FLOAT fx = c * dy, fy = d * dy;
441 return FXSYS_sqrt(fx * fx + fy * fy);
445 FX_FLOAT fx
[all...]
/external/eigen/Eigen/src/Core/arch/SSE/
H A DMathFunctions.h129 Packet4f tmp = _mm_setzero_ps(), fx; local
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; local
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_aalinetemp.h40 const GLfloat fx = (GLfloat) ix; local
60 line->span.array->z[i] = (GLuint) solve_plane(fx, fy, line->zPlane);
62 line->span.array->rgba[i][RCOMP] = solve_plane_chan(fx, fy, line->rPlane);
63 line->span.array->rgba[i][GCOMP] = solve_plane_chan(fx, fy, line->gPlane);
64 line->span.array->rgba[i][BCOMP] = solve_plane_chan(fx, fy, line->bPlane);
65 line->span.array->rgba[i][ACOMP] = solve_plane_chan(fx, fy, line->aPlane);
73 const GLfloat invQ = solve_plane_recip(fx, fy, line->attrPlane[attr][3]);
76 attribArray[i][c] = solve_plane(fx, fy, line->attrPlane[attr][c]) * invQ;
85 const GLfloat invW = solve_plane_recip(fx, fy, line->wPlane);
88 attribArray[i][c] = solve_plane(fx, f
[all...]
/external/skia/src/svg/parser/
H A DSkSVGRadialGradient.cpp16 SVG_ATTRIBUTE(fx),

Completed in 656 milliseconds

12345