/external/llvm/examples/ExceptionDemo/ |
H A D | ExceptionDemo.cpp | 377 uintptr_t shift = 0; local 383 result |= (byte & 0x7f) << shift; 384 shift += 7; 401 uintptr_t shift = 0; local 407 result |= (byte & 0x7f) << shift; 408 shift += 7; 414 if ((byte & 0x40) && (shift < (sizeof(result) << 3))) { 415 result |= (~0 << shift);
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm.c | 866 LLVMValueRef zero, shift; local 887 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ 914 temp = shift; 921 temp = LLVMBuildShl(builder, temp, shift, ""); 927 temp = LLVMBuildShl(builder, temp, shift, ""); 934 temp = LLVMBuildShl(builder, temp, shift, ""); 956 temp = LLVMBuildShl(builder, temp, shift, "");
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_arit.c | 704 LLVMValueRef shift; local 743 shift = lp_build_const_int_vec(bld->gallivm, type, type.width/2); 745 shift = NULL; 752 if(shift) { 754 res = LLVMConstAShr(res, shift); 756 res = LLVMConstLShr(res, shift); 764 if(shift) { 766 res = LLVMBuildAShr(builder, res, shift, ""); 768 res = LLVMBuildLShr(builder, res, shift, ""); 802 unsigned shift local 938 LLVMValueRef shift; local 1223 LLVMValueRef shift = lp_build_const_int_vec(bld->gallivm, type, type.width - 1); local [all...] |
/external/mesa3d/src/mesa/main/ |
H A D | ff_fragment_shader.cpp | 816 rgb_saturate = GL_FALSE; /* saturate after rgb shift */ 823 alpha_saturate = GL_FALSE; /* saturate after alpha shift */ 883 /* Deal with the final shift: 886 ir_constant *shift; local 889 shift = new(p->mem_ctx) ir_constant((float)(1 << rgb_shift)); 898 shift = new(p->mem_ctx) ir_constant(glsl_type::vec4_type, 902 return saturate(mul(deref, shift));
|
H A D | get.c | 2068 int shift, i; local 2145 shift = d->type - TYPE_BIT_0; 2146 params[0] = (*(GLbitfield *) p >> shift) & 1; 2157 int shift, i; local 2234 shift = d->type - TYPE_BIT_0; 2235 params[0] = BOOLEAN_TO_FLOAT((*(GLbitfield *) p >> shift) & 1); 2246 int shift, i; local 2329 shift = d->type - TYPE_BIT_0; 2330 params[0] = (*(GLbitfield *) p >> shift) & 1; 2342 int shift, local 2438 int shift, i; local 2737 int shift, i; local [all...] |
/external/opencv/cv/src/ |
H A D | cvcalibinit.cpp | 996 // shift 999 // shift by one 1987 const int shift = 0; local 1989 const int r = radius*(1 << shift); 2033 pt.x = cvRound(corners[i].x*(1 << shift)); 2034 pt.y = cvRound(corners[i].y*(1 << shift)); 2036 cvPoint( pt.x + r, pt.y + r ), color, 1, line_type, shift ); 2038 cvPoint( pt.x + r, pt.y - r), color, 1, line_type, shift ); 2039 cvCircle( image, pt, r+(1<<shift), color, 1, line_type, shift ); [all...] |
H A D | cvhough.cpp | 566 const int shift = 16; local 605 dy0 = cvRound( b*(1 << shift)/fabs(a) ); 606 y0 = (y0 << shift) + (1 << (shift-1)); 612 dx0 = cvRound( a*(1 << shift)/fabs(b) ); 613 x0 = (x0 << shift) + (1 << (shift-1)); 633 i1 = y >> shift; 637 j1 = x >> shift; 681 i1 = y >> shift; [all...] |
/external/opencv/cxcore/src/ |
H A D | cxdrawing.cpp | 63 int shift, CvPoint offset=cvPoint(0,0) ); 70 const void* color, int thickness, int line_type, int shift ); 74 const void* color, int line_type, int shift ); 988 icvFillConvexPoly( CvMat* img, CvPoint *v, int npts, const void* color, int line_type, int shift ) 997 int delta = shift ? 1 << (shift - 1) : 0; 1014 p0.x <<= XY_SHIFT - shift; 1015 p0.y <<= XY_SHIFT - shift; 1017 assert( 0 <= shift && shift < 1149 icvCollectPolyEdges( CvMat* img, CvSeq* v, CvContour* edges, const void* color, int line_type, int shift, CvPoint offset ) argument 2540 int shift = 0; local [all...] |
H A D | cxmathfuncs.cpp | 1370 static const double shift[] = { 0, -1./512 }; local 1377 #define LOGPOLY(x,k) ((x)+=shift[k],((A0*(x) + A1)*(x) + A2)*(x)) 1471 static const double shift[] = { 0, -1./512 }; local 1481 #define LOGPOLY(x,k) ((x)+=shift[k], (xq) = (x)*(x),\
|
H A D | cxmatmul.cpp | 1607 CvMat shiftstub, *shift = (CvMat*)shiftvec; local 1722 if( shift ) 1724 if( !CV_IS_MAT( shift )) 1725 CV_CALL( shift = cvGetMat( shift, &shiftstub, &coi )); 1727 if( CV_MAT_CN( shift->type ) * shift->cols * shift->rows == dst_cn && 1728 (shift->rows == 1 || shift [all...] |
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_jpeg.cpp | 1206 int shift = h[1]*(y >> y_shift); local 1207 int* cmpCb = blocks[pos[1]] + shift; 1208 int* cmpCr = blocks[pos[2]] + shift;
|
/external/pixman/test/ |
H A D | utils.c | 1478 convert (double v, uint32_t width, uint32_t mask, uint32_t shift, double def) argument 1485 r = (v * ((mask >> shift) + 1));
|
/external/qemu/ |
H A D | arm-dis.c | 109 %I print cirrus signed shift immediate: bits 0..3|4..6 649 /* Two registers and a shift amount */ 789 %o print operand2 (immediate or register + shift) 1080 %s print Thumb right-shift immediate (6..10; 0 == 32). 1238 %s print the shift field of an SSAT instruction 1600 int shift = (given & 0x60) >> 5; local 1604 if (shift == 3) 1614 func (stream, ", %s #%d", arm_shift[shift], amount); 1771 /* Print a Cirrus/DSP shift immediate. */ 2448 unsigned shift; local 3654 unsigned int shift = 0; local [all...] |
H A D | sockets.c | 335 int shift = 4*ndigits; local 338 while (shift >= 0) { 339 buf = format_char(buf, end, hex[(val >> shift) & 15]); 340 shift -= 4;
|
/external/qemu/audio/ |
H A D | audio.c | 709 int bits = 8, sign = 0, shift = 0; local 721 shift = 1; 728 shift = 2; 736 info->shift = (as->nchannels == 2) + shift; 737 info->align = (1 << info->shift) - 1; 738 info->bytes_per_second = info->freq << info->shift; 749 memset (buf, 0x00, len << info->shift); 754 memset (buf, 0x80, len << info->shift); 761 int shift local 778 int shift = info->nchannels - 1; local [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
H A D | pnggccrd.c | 1476 int shift; local 1497 shift = s_start; 1505 value = (*sp >> shift) & 0x1; 1506 *dp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); 1507 *dp |= (png_byte)(value << shift); 1510 if (shift == s_end) 1512 shift = s_start; 1517 shift += s_inc; 1533 int shift; local 1555 shift 1588 int shift; local [all...] |
H A D | pngrtran.c | 1422 &(png_ptr->shift)); 1523 png_uint_32 shift = 7 - (int)((row_width + 7) & 0x07); local 1526 *dp = (png_byte)((*sp >> shift) & 0x01); 1527 if (shift == 7) 1529 shift = 0; 1533 shift++; 1544 png_uint_32 shift = (int)((3 - ((row_width + 3) & 0x03)) << 1); local 1547 *dp = (png_byte)((*sp >> shift) & 0x03); 1548 if (shift == 6) 1550 shift 1564 png_uint_32 shift = (int)((1 - ((row_width + 1) & 0x01)) << 2); local 1604 int shift[4]; local 1661 *bp >>= shift[0]; local 1674 *bp++ >>= shift[i%channels]; local 1687 value >>= shift[i%channels]; local 2706 int shift; local 3567 int shift, value; local 3710 int shift, value; local 4074 int i, j, shift, num; local [all...] |
H A D | pngrutil.c | 2475 int shift; local 2496 shift = s_start; 2504 value = (*sp >> shift) & 0x1; 2505 *dp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); 2506 *dp |= (png_byte)(value << shift); 2509 if (shift == s_end) 2511 shift = s_start; 2516 shift += s_inc; 2532 int shift; local 2554 shift 2587 int shift; local 3338 int shift; local 3392 int shift; local 3444 int shift; local [all...] |
H A D | pngwutil.c | 1967 int shift; local 1975 shift = 7; 1981 d |= (value << shift); 1983 if (shift == 0) 1985 shift = 7; 1990 shift--; 1993 if (shift != 7) 2001 int shift; local 2008 shift = 6; 2015 d |= (value << shift); 2034 int shift; local [all...] |
/external/qemu/target-arm/ |
H A D | neon_helper.c | 471 int8_t shift = (int8_t)shiftop; local 472 if (shift >= 64 || shift <= -64) { 474 } else if (shift < 0) { 475 val >>= -shift; 477 val <<= shift; local 501 int8_t shift = (int8_t)shiftop; local 503 if (shift >= 64) { 505 } else if (shift <= -64) { 507 } else if (shift < 510 val <<= shift; local 536 int8_t shift = (int8_t)shiftop; local 552 int8_t shift = (int8_t)shiftop; local 568 val <<= shift; local 595 int8_t shift = (int8_t)shiftop; local 613 int8_t shift = (uint8_t)shiftop; local 631 val <<= shift; local 664 int8_t shift = (int8_t)shiftop; local 676 val <<= shift; local 719 int8_t shift = (uint8_t)shiftop; local 732 val <<= shift; local 822 int8_t shift = (int8_t)shiftop; local 851 int8_t shift = (int8_t)shiftop; local 874 val <<= shift; local 920 int8_t shift = (int8_t)shiftop; local 947 int8_t shift = (uint8_t)shiftop; local 970 val <<= shift; local [all...] |
/external/qemu/target-i386/ |
H A D | ops_sse.h | 41 int shift; local 49 shift = s->B(0); 50 d->W(0) >>= shift; 51 d->W(1) >>= shift; 52 d->W(2) >>= shift; 53 d->W(3) >>= shift; 55 d->W(4) >>= shift; 56 d->W(5) >>= shift; 57 d->W(6) >>= shift; 58 d->W(7) >>= shift; 65 int shift; local 86 int shift; local 110 int shift; local 130 int shift; local 147 int shift; local 167 int shift; local 185 int shift; local 204 int shift, i; local 217 int shift, i; local [all...] |
/external/qemu/tcg/arm/ |
H A D | tcg-target.c | 234 int shift; local 239 /* then try a simple even shift */ 240 shift = ctz32(imm) & ~1; 241 if (((imm >> shift) & ~0xff) == 0) 242 return 32 - shift; 385 int cond, int opc, int rd, int rn, int rm, int shift) 388 (rn << 16) | (rd << 12) | shift | rm); 393 int rn0, int rn1, int rm0, int rm1, int shift) 397 (rn0 << 16) | (8 << 12) | shift | rm0); 399 (rn1 << 16) | (rd1 << 12) | shift | rm 384 tcg_out_dat_reg(TCGContext *s, int cond, int opc, int rd, int rn, int rm, int shift) argument 391 tcg_out_dat_reg2(TCGContext *s, int cond, int opc0, int opc1, int rd0, int rd1, int rn0, int rn1, int rm0, int rm1, int shift) argument [all...] |
/external/qemu/tcg/i386/ |
H A D | tcg-target.c | 410 /* Output an opcode with a full "rm + (index<<shift) + offset" address mode. 416 int index, int shift, 488 tcg_out8(s, (shift << 6) | (LOWREGMASK(index) << 3) | LOWREGMASK(rm)); 498 /* A simplification of the above with no index or shift. */ 415 tcg_out_modrm_sib_offset(TCGContext *s, int opc, int r, int rm, int index, int shift, tcg_target_long offset) argument
|
/external/skia/src/core/ |
H A D | SkMatrix.cpp | 865 int* shift) { 881 *shift = s; 968 int shift; local 969 SkDetScalar scale = sk_inv_determinant(fMat, isPersp, &shift); 982 shift = 61 - shift; 983 inv->fMat[kMScaleX] = SkScalarMulShift(SkPerspMul(fMat[kMScaleY], fMat[kMPersp2]) - SkPerspMul(fMat[kMTransY], fMat[kMPersp1]), scale, shift); 984 inv->fMat[kMSkewX] = SkScalarMulShift(SkPerspMul(fMat[kMTransX], fMat[kMPersp1]) - SkPerspMul(fMat[kMSkewX], fMat[kMPersp2]), scale, shift); 985 inv->fMat[kMTransX] = SkScalarMulShift(SkScalarMul(fMat[kMSkewX], fMat[kMTransY]) - SkScalarMul(fMat[kMTransX], fMat[kMScaleY]), scale, shift); 987 inv->fMat[kMSkewY] = SkScalarMulShift(SkPerspMul(fMat[kMTransY], fMat[kMPersp0]) - SkPerspMul(fMat[kMSkewY], fMat[kMPersp2]), scale, shift); 864 sk_inv_determinant(const SkFixed mat[9], int isPerspective, int* shift) argument [all...] |
/external/skia/src/gpu/ |
H A D | GrContext.cpp | 1648 static inline intptr_t setOrClear(intptr_t bits, int shift, intptr_t pred) { argument 1649 intptr_t mask = 1 << shift;
|