/external/skia/tests/ |
ClampRangeTest.cpp | 36 static int classify_value(SkFixed fx, int v0, int v1) { 37 if (fx <= 0) { 40 if (fx >= 0xFFFF) { 51 SkFixed fx, SkFixed dx, int count) { 56 fx = range.fFx1; 58 R_ASSERT(fx >= 0 && fx <= 0xFFFF); 59 fx += dx; 63 int v = classify_value(fx, V0, V1); 65 fx += dx 115 SkFixed fx = rand.nextS() >> 1; local 124 SkFixed fx = rand.nextS(); local [all...] |
/external/chromium_org/third_party/skia/src/opts/ |
SkBitmapProcState_matrixProcs_neon.cpp | 16 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 17 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 20 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) 22 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) 28 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) 30 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF [all...] |
SkBitmapProcState_opts_SSE2.cpp | 256 SkFixed fx; local 265 // now initialize fx 266 fx = SkScalarToFixed(pt.fX) - (one >> 1); 269 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && 270 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { 274 SkASSERT((fx >> (16 + 14)) == 0); 275 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); 276 fx += dx 378 SkFixed fx; local 500 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local 574 SkFixed fx = SkScalarToFixed(srcPt.fX); local [all...] |
/external/skia/src/opts/ |
SkBitmapProcState_matrixProcs_neon.cpp | 16 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 17 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 20 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) 22 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) 28 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) 30 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF [all...] |
SkBitmapProcState_opts_SSE2.cpp | 256 SkFixed fx; local 265 // now initialize fx 266 fx = SkScalarToFixed(pt.fX) - (one >> 1); 269 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && 270 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { 274 SkASSERT((fx >> (16 + 14)) == 0); 275 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); 276 fx += dx 378 SkFixed fx; local 500 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local 574 SkFixed fx = SkScalarToFixed(srcPt.fX); local [all...] |
/external/clang/test/CodeGenCXX/ |
debug-info-fn-template.cpp | 9 T fx(XF<T> xi) { function 15 template int fx(XF<int>);
|
/external/chromium_org/third_party/skia/src/core/ |
SkBitmapProcState_utils.h | 14 * 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;
|
SkBitmapShaderTemplate.h | 68 SkFixed fx, fy, dx, dy; local 83 fx >>= level; 91 fx = *srcXY++; 93 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); 102 fx = *srcXY++; 104 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); 114 // now init fx, fy, dx, dy 120 fx = SkScalarToFixed(srcPt.fX); 134 fx >>= level 212 SkFixed fx, fy, dx, dy; local [all...] |
ARGB32_Clamp_Bilinear_BitmapShader.h | 19 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, 21 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, 24 int ix = fx >> 16; 43 SkFilterPtrProc proc = SkGetBilinearFilterPtrProc(proc_table, fx, fy); 47 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, 50 int ix = fx >> 16; 61 SkFilterPtrProc proc = SkGetBilinearFilterPtrXProc(proc_table, fx); 92 SkFixed fx = *srcXY++ - SK_FixedHalf; local 94 *dstC++ = sample_bilerp(fx, fy, srcMaxX, srcMaxY, srcPixels, srcRB, proc_table); 105 SkFixed fx = *srcXY++ - SK_FixedHalf local 115 SkFixed fx, fy, dx, dy; local [all...] |
SkBitmapProcState_matrixProcs.cpp | 33 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); 48 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) 50 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) 56 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) 58 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF [all...] |
SkBitmapShader16BilerpTemplate.h | 47 SkFixed fx = *srcXY++ - SK_FixedHalf; local 49 int ix = fx >> 16; 67 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); 79 SkFixed fx, fy, dx, dy; local 81 // now init fx, fy, dx, dy 87 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 100 int ix = fx >> 16; 118 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); 125 fx += dx 156 SkFixed fx = *srcXY++ - SK_FixedHalf; local 187 SkFixed fx, fy, dx, dy; local [all...] |
SkBitmapProcState_matrix.h | 55 SkFractionalInt fx; local 60 fx = SkScalarToFractionalInt(pt.fY); 62 *xy++ = TILEY_PROCF(SkFractionalIntToFixed(fx), maxY); 63 fx = SkScalarToFractionalInt(pt.fX); 75 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { 76 decal_nofilter_scale(xy, SkFractionalIntToFixed(fx), 84 a = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; 85 b = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx 123 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); local 187 SkFractionalInt fx; local 231 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); local [all...] |
/external/skia/src/core/ |
SkBitmapProcState_utils.h | 14 * 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;
|
SkBitmapShaderTemplate.h | 68 SkFixed fx, fy, dx, dy; local 83 fx >>= level; 91 fx = *srcXY++; 93 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); 102 fx = *srcXY++; 104 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); 114 // now init fx, fy, dx, dy 120 fx = SkScalarToFixed(srcPt.fX); 134 fx >>= level 212 SkFixed fx, fy, dx, dy; local [all...] |
ARGB32_Clamp_Bilinear_BitmapShader.h | 19 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, 21 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, 24 int ix = fx >> 16; 43 SkFilterPtrProc proc = SkGetBilinearFilterPtrProc(proc_table, fx, fy); 47 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, 50 int ix = fx >> 16; 61 SkFilterPtrProc proc = SkGetBilinearFilterPtrXProc(proc_table, fx); 92 SkFixed fx = *srcXY++ - SK_FixedHalf; local 94 *dstC++ = sample_bilerp(fx, fy, srcMaxX, srcMaxY, srcPixels, srcRB, proc_table); 105 SkFixed fx = *srcXY++ - SK_FixedHalf local 115 SkFixed fx, fy, dx, dy; local [all...] |
SkBitmapProcState_matrixProcs.cpp | 33 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); 48 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) 50 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) 56 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) 58 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF [all...] |
SkBitmapShader16BilerpTemplate.h | 47 SkFixed fx = *srcXY++ - SK_FixedHalf; local 49 int ix = fx >> 16; 67 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); 79 SkFixed fx, fy, dx, dy; local 81 // now init fx, fy, dx, dy 87 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; 100 int ix = fx >> 16; 118 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); 125 fx += dx 156 SkFixed fx = *srcXY++ - SK_FixedHalf; local 187 SkFixed fx, fy, dx, dy; local [all...] |
/external/chromium_org/third_party/skia/src/effects/gradients/ |
SkClampRange.cpp | 36 void SkClampRange::initFor1(SkFixed fx) { 38 if (fx <= 0) { 40 } else if (fx < 0xFFFF) { 42 fFx1 = fx; 62 int64_t fx = fx0; local 65 int64_t ex = fx + (count - 1) * dx; 68 if ((uint64_t)(fx | ex) <= 0xFFFF) { 74 if (fx <= 0 && ex <= 0) { 79 if (fx >= 0xFFFF && ex >= 0xFFFF) { 97 fx = -fx [all...] |
SkClampRange.h | 16 * Iteration fixed fx by dx, clamping as you go to [0..0xFFFF], this class 20 * range1: iterate as usual fx += dx 27 SkFixed fFx1; // initial fx value for the fCount1 range. 32 void init(SkFixed fx, SkFixed dx, int count, int v0, int v1); 35 void initFor1(SkFixed fx);
|
SkRadialGradient.cpp | 62 matrix->setTranslate(-center.fX, -center.fY); 84 SkFixed fx = SkScalarToFixed(sfx) >> 1; local 94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); 97 fx += dx; 104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); 108 fx += dx; 118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, 122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); 127 fx += dx 308 SkFixed fx = SkScalarToFixed(sfx) >> 1; local [all...] |
/external/skia/src/effects/gradients/ |
SkClampRange.cpp | 36 void SkClampRange::initFor1(SkFixed fx) { 38 if (fx <= 0) { 40 } else if (fx < 0xFFFF) { 42 fFx1 = fx; 62 int64_t fx = fx0; local 65 int64_t ex = fx + (count - 1) * dx; 68 if ((uint64_t)(fx | ex) <= 0xFFFF) { 74 if (fx <= 0 && ex <= 0) { 79 if (fx >= 0xFFFF && ex >= 0xFFFF) { 97 fx = -fx [all...] |
SkClampRange.h | 16 * Iteration fixed fx by dx, clamping as you go to [0..0xFFFF], this class 20 * range1: iterate as usual fx += dx 27 SkFixed fFx1; // initial fx value for the fCount1 range. 32 void init(SkFixed fx, SkFixed dx, int count, int v0, int v1); 35 void initFor1(SkFixed fx);
|
SkRadialGradient.cpp | 62 matrix->setTranslate(-center.fX, -center.fY); 84 SkFixed fx = SkScalarToFixed(sfx) >> 1; local 94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); 97 fx += dx; 104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); 108 fx += dx; 118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, 122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); 127 fx += dx 308 SkFixed fx = SkScalarToFixed(sfx) >> 1; local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGRadialGradientElement.idl | 30 readonly attribute SVGAnimatedLength fx;
|
/external/skia/bench/ |
InterpBench.cpp | 54 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { 55 SkFixed curr = SkFloatToFixed(fx); 73 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { 74 int64_t curr = (int64_t)(fx * 65536 * 655536); 104 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { 105 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); 124 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { 127 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; 128 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx [all...] |