/external/chromium_org/third_party/skia/include/core/ |
H A D | SkTypes.h | 412 unsigned shift) { 414 return (bits & ~(1 << shift)) | ((int)cond << shift); 411 SkSetClearShift(uint32_t bits, bool cond, unsigned shift) argument
|
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleApp.cpp | 2296 int shift = 32 - bits; local 2297 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, 2298 rand.nextU() >> shift, rand.nextU() >> shift);
|
/external/chromium_org/third_party/skia/src/animator/ |
H A D | SkAnimatorScript.cpp | 210 int shift = 16; local 213 result |= SkClampMax(valuePtr->fOperand.fS32, 255) << shift; 214 shift -= 8;
|
H A D | SkAnimatorScript2.cpp | 290 int shift = 16; local 292 result |= SkClampMax(params->begin()[index].fS32, 255) << shift; 293 shift -= 8;
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBitmap_scroll.cpp | 26 int shift = this->bytesPerPixel() >> 1; local 83 src -= dx << shift; 86 dst += dx << shift; 96 width <<= shift; // now width is the number of bytes to move per line local
|
H A D | SkEdge.cpp | 16 the points into FDot6. This is modulated by the shift parameter, which 20 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6). 23 or pt >> 8 for antialiasing. This is implemented as pt >> (10 - shift). 28 // away data in value, so just perform a modify up-shift 35 int shift) { 40 x0 = SkScalarRoundToFDot6(p0.fX, shift); 41 y0 = SkScalarRoundToFDot6(p0.fY, shift); 42 x1 = SkScalarRoundToFDot6(p1.fX, shift); 43 y1 = SkScalarRoundToFDot6(p1.fY, shift); 45 float scale = float(1 << (shift 34 setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, int shift) argument 176 setQuadratic(const SkPoint pts[3], int shift) argument 282 int shift = fCurveShift; local 335 setCubic(const SkPoint pts[4], const SkIRect* clip, int shift) argument [all...] |
H A D | SkEdgeBuilder.cpp | 75 static void setShiftedClip(SkRect* dst, const SkIRect& src, int shift) { argument 76 dst->set(SkIntToScalar(src.fLeft >> shift), 77 SkIntToScalar(src.fTop >> shift), 78 SkIntToScalar(src.fRight >> shift), 79 SkIntToScalar(src.fBottom >> shift));
|
H A D | SkFloat.cpp | 32 int SkFloat::GetShift(int32_t packed, int shift) argument 37 int exp = get_unsigned_exp(packed) - EXP_BIAS - shift; 60 int32_t SkFloat::SetShift(int value, int shift) argument 74 shift += bias; 81 shift -= zeros; 86 shift += EXP_BIAS; 87 if (shift < 0) // underflow 91 if (shift > 255) // overflow 93 shift = 255; 97 packed |= shift << 2 [all...] |
H A D | SkFloatBits.cpp | 84 // apply the sign before we right-shift 123 // apply the sign before we right-shift 153 // apply the sign before we right-shift 179 int shift = EXP_BIAS; local 190 shift += bias; 195 shift -= zeros; 200 SkASSERT(shift >= 0 && shift <= 255); 203 data.fSignBitInt = (sign << 31) | (shift << 23) | (value & ~MATISSA_MAGIC_BIG);
|
H A D | SkScalerContext.cpp | 388 int shift = 7; local 389 for (int i = 0; i < leftOverBits; ++i, --shift) { 390 bits |= convert_8_to_1(*src++) << shift;
|
H A D | SkScan_Path.cpp | 318 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { argument 320 fFirstX = clip.fLeft << shift; 321 fLastX = clip.fRight << shift;
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkColorMatrixFilter.cpp | 30 const int shift = state.fShift; local 32 result[0] = rowmul4(&array[0], r, g, b, a) >> shift; 33 result[1] = rowmul4(&array[5], r, g, b, a) >> shift; 34 result[2] = rowmul4(&array[10], r, g, b, a) >> shift; 35 result[3] = rowmul4(&array[15], r, g, b, a) >> shift; 53 const int shift = state.fShift; local 55 result[0] = rowmul3(&array[0], r, g, b) >> shift; 56 result[1] = rowmul3(&array[5], r, g, b) >> shift; 57 result[2] = rowmul3(&array[10], r, g, b) >> shift; 76 const int shift local 101 const int shift = state.fShift; local [all...] |
/external/chromium_org/third_party/skia/src/image/ |
H A D | SkSurface_Raster.cpp | 44 int shift = 0; local 47 shift = 0; 50 shift = 1; 53 shift = 2; 63 uint64_t minRB = (uint64_t)info.width() << shift; 68 size_t alignedRowBytes = rowBytes >> shift << shift;
|
/external/chromium_org/third_party/skia/src/images/ |
H A D | SkImageDecoder_libico.cpp | 47 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 50 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 187 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; 286 int shift = 7 - (andPixelNo & 0x7); local 287 int m = 1 << shift; 290 placePixel(pixelNo, buf, xorOffset, x, y, w, bm, alphaByte, m, shift, colors); 305 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColo 303 editPixelBit1(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 332 editPixelBit4(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 352 editPixelBit8(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 362 editPixelBit24(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 376 editPixelBit32(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument [all...] |
/external/chromium_org/third_party/skia/src/opts/ |
H A D | SkColor_opts_SSE2.h | 85 const __m128i& b, int shift) { 87 prod = _mm_add_epi16(prod, _mm_set1_epi16(1 << (shift - 1))); 88 prod = _mm_add_epi16(prod, _mm_srli_epi16(prod, shift)); 89 prod = _mm_srli_epi16(prod, shift); 84 SkMul16ShiftRound_SSE2(const __m128i& a, const __m128i& b, int shift) argument
|
/external/chromium_org/third_party/skia/src/ports/ |
H A D | SkFontHost_FreeType_common.cpp | 287 int shift = 7; local 288 for (int i = 0; i < leftOverBits; ++i, --shift) { 289 bits |= convert_8_to_1(*src++) << shift; 554 funcs.shift = 0;
|
/external/chromium_org/third_party/skia/tests/ |
H A D | PathCoverageTest.cpp | 50 int shift = 30 - SkCLZ(distance); local 52 shift &= ~(shift>>31); 53 if (shift > MAX_COEFF_SHIFT) { 54 shift = MAX_COEFF_SHIFT; 56 return 1 << shift;
|
H A D | RandomTest.cpp | 59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { argument 65 bins[(rand.nextU() >> shift) & 0xff]++; 93 // we are using the random bit generated from a single shift position to generate 102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { argument 117 value |= ((rnd >> shift) & 0x1); 124 value |= ((rnd >> shift) & 0x1);
|
H A D | RegionTest.cpp | 198 int shift = 32 - bits; local 199 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, 200 rand.nextU() >> shift, rand.nextU() >> shift);
|
/external/chromium_org/third_party/smhasher/src/ |
H A D | City.cpp | 99 // instruction, especially if the shift is a manifest constant. 100 static uint64 Rotate(uint64 val, int shift) { argument 102 return shift == 0 ? val : ((val >> shift) | (val << (64 - shift))); 108 static uint64 RotateByAtLeast1(uint64 val, int shift) { argument 109 return (val >> shift) | (val << (64 - shift));
|
/external/chromium_org/third_party/speex/libspeex/ |
H A D | lpc.c | 138 int shift, ac_shift; local 143 shift = 8; 144 while (shift && ac0<0x40000000) 146 shift--; 162 d = ADD32(d,SHR32(MULT16_16(x[j],x[j-i]), shift));
|
H A D | lsp.c | 503 int shift = QIMP-13; local 506 a = PSHR32(xp[m][j+2] + xout1 + xq[m][j+2] - xout2, shift);
|
H A D | stereo.c | 154 int shift; local 187 shift = spx_ilog2(largest)-15; 188 largest = VSHR32(largest, shift-4); 189 smallest = VSHR32(smallest, shift); 206 shift = spx_ilog2(e_tot); 207 e_tot = VSHR32(e_tot, shift-25); 208 e_left = VSHR32(e_left, shift-10); 209 e_right = VSHR32(e_right, shift-10);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
H A D | common.cc | 48 int shift = (1 << i); local 49 size_t x = n >> shift; 52 log += shift;
|
H A D | packed-cache-inl.h | 196 // If we have space for a whole key, we just shift it left. 204 const int shift = kHashbits - kValuebits; local 206 return static_cast<T>(k >> shift) & kUpperMask;
|