/external/llvm/test/Analysis/CostModel/X86/ |
D | vshift-lshr-cost.ll | 8 ; Verify the cost of vector logical shift right instructions. 16 ; SSE2: Found an estimated cost of 4 for instruction: %shift 17 ; SSE41: Found an estimated cost of 4 for instruction: %shift 18 ; AVX: Found an estimated cost of 4 for instruction: %shift 19 ; AVX2: Found an estimated cost of 1 for instruction: %shift 20 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift 21 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift 22 %shift = lshr <2 x i64> %a, %b 23 ret <2 x i64> %shift 28 ; SSE2: Found an estimated cost of 8 for instruction: %shift [all …]
|
D | vshift-ashr-cost.ll | 8 ; Verify the cost of vector arithmetic shift right instructions. 16 ; SSE2: Found an estimated cost of 12 for instruction: %shift 17 ; SSE41: Found an estimated cost of 12 for instruction: %shift 18 ; AVX: Found an estimated cost of 12 for instruction: %shift 19 ; AVX2: Found an estimated cost of 4 for instruction: %shift 20 ; XOP: Found an estimated cost of 2 for instruction: %shift 21 %shift = ashr <2 x i64> %a, %b 22 ret <2 x i64> %shift 27 ; SSE2: Found an estimated cost of 24 for instruction: %shift 28 ; SSE41: Found an estimated cost of 24 for instruction: %shift [all …]
|
D | vshift-shl-cost.ll | 8 ; Verify the cost of vector shift left instructions. 17 ; SSE2: Found an estimated cost of 4 for instruction: %shift 18 ; SSE41: Found an estimated cost of 4 for instruction: %shift 19 ; AVX: Found an estimated cost of 4 for instruction: %shift 20 ; AVX2: Found an estimated cost of 1 for instruction: %shift 21 ; XOPAVX: Found an estimated cost of 1 for instruction: %shift 22 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift 23 %shift = shl <2 x i64> %a, %b 24 ret <2 x i64> %shift 29 ; SSE2: Found an estimated cost of 8 for instruction: %shift [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | AESEngine.java | 224 private static int shift(int r, int shift) in shift() method in AESEngine 226 return (r >>> shift) | (r << -shift); in shift() 264 t1 = t0 ^ shift(t0, 8); in inv_mcol() 267 t0 ^= t1 ^ shift(t1, 16); in inv_mcol() 305 int u = subWord(shift(t3, 8)) ^ rcon[i - 1]; in generateWorkingKey() 324 int u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 334 u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 341 u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 350 u = subWord(shift(t5, 8)) ^ rcon; in generateWorkingKey() 373 u = subWord(shift(t7, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() [all …]
|
/external/aac/libSBRdec/src/ |
D | transcendent.h | 128 int shift; in FDK_add_MantExp() local 138 shift = (int)(a_e - b_e); in FDK_add_MantExp() 140 shiftAbs = (shift>0)? shift : -shift; in FDK_add_MantExp() 142 shiftedMantissa = (shift>0)? (FX_SGL2FX_DBL(b_m) >> shiftAbs) : (FX_SGL2FX_DBL(a_m) >> shiftAbs); in FDK_add_MantExp() 143 otherMantissa = (shift>0)? FX_SGL2FX_DBL(a_m) : FX_SGL2FX_DBL(b_m); in FDK_add_MantExp() 144 *ptrSum_e = (shift>0)? a_e : b_e; in FDK_add_MantExp() 166 int shift; in FDK_add_MantExp() local 176 shift = (int)(a_e - b_e); in FDK_add_MantExp() 178 shiftAbs = (shift>0)? shift : -shift; in FDK_add_MantExp() 180 shiftedMantissa = (shift>0)? (b >> shiftAbs) : (a >> shiftAbs); in FDK_add_MantExp() [all …]
|
/external/skia/src/core/ |
D | SkEdge.cpp | 35 int shift) { in setLine() argument 40 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine() 41 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine() 42 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine() 43 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine() 45 float scale = float(1 << (shift + 6)); in setLine() 176 int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift) in setQuadratic() argument 182 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setQuadratic() 183 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setQuadratic() 184 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setQuadratic() [all …]
|
/external/libopus/silk/ |
D | MacroDebug.h | 547 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ in silk_LSHIFT8_() argument 550 ret = a << shift; in silk_LSHIFT8_() 551 fail |= shift < 0; in silk_LSHIFT8_() 552 fail |= shift >= 8; in silk_LSHIFT8_() 553 fail |= (opus_int64)ret != ((opus_int64)a) << shift; in silk_LSHIFT8_() 556 fprintf (stderr, "silk_LSHIFT8(%d, %d) in %s: line %d\n", a, shift, file, line); in silk_LSHIFT8_() 566 static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ in silk_LSHIFT16_() argument 569 ret = a << shift; in silk_LSHIFT16_() 570 fail |= shift < 0; in silk_LSHIFT16_() 571 fail |= shift >= 16; in silk_LSHIFT16_() [all …]
|
D | SigProc_FIX.h | 175 …opus_int *shift, /* O Number of bits right shift applied to energ… 469 #define silk_LSHIFT8(a, shift) ((opus_int8)((opus_uint8)(a)<<(shift))) /* shif… argument 470 #define silk_LSHIFT16(a, shift) ((opus_int16)((opus_uint16)(a)<<(shift))) /* shif… argument 471 #define silk_LSHIFT32(a, shift) ((opus_int32)((opus_uint32)(a)<<(shift))) /* shif… argument 472 #define silk_LSHIFT64(a, shift) ((opus_int64)((opus_uint64)(a)<<(shift))) /* shif… argument 473 #define silk_LSHIFT(a, shift) silk_LSHIFT32(a, shift) /* shif… argument 475 #define silk_RSHIFT8(a, shift) ((a)>>(shift)) /* shif… argument 476 #define silk_RSHIFT16(a, shift) ((a)>>(shift)) /* shif… argument 477 #define silk_RSHIFT32(a, shift) ((a)>>(shift)) /* shif… argument 478 #define silk_RSHIFT64(a, shift) ((a)>>(shift)) /* shif… argument [all …]
|
/external/llvm/test/CodeGen/SystemZ/ |
D | shift-07.ll | 10 %shift = ashr i64 %a, 1 11 ret i64 %shift 19 %shift = ashr i64 %a, 63 20 ret i64 %shift 28 %shift = ashr i64 %a, 64 29 ret i64 %shift 37 %shift = ashr i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = ashr i64 %a, %add [all …]
|
D | shift-06.ll | 10 %shift = lshr i64 %a, 1 11 ret i64 %shift 19 %shift = lshr i64 %a, 63 20 ret i64 %shift 28 %shift = lshr i64 %a, 64 29 ret i64 %shift 37 %shift = lshr i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = lshr i64 %a, %add [all …]
|
D | shift-05.ll | 10 %shift = shl i64 %a, 1 11 ret i64 %shift 19 %shift = shl i64 %a, 63 20 ret i64 %shift 28 %shift = shl i64 %a, 64 29 ret i64 %shift 37 %shift = shl i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = shl i64 %a, %add [all …]
|
D | shift-01.ll | 10 %shift = shl i32 %a, 1 11 ret i32 %shift 19 %shift = shl i32 %a, 31 20 ret i32 %shift 28 %shift = shl i32 %a, 32 29 ret i32 %shift 32 ; Make sure that we don't generate negative shift amounts. 38 %shift = shl i32 %a, %sub 39 ret i32 %shift 47 %shift = shl i32 %a, %amt [all …]
|
D | shift-03.ll | 10 %shift = ashr i32 %a, 1 11 ret i32 %shift 19 %shift = ashr i32 %a, 31 20 ret i32 %shift 28 %shift = ashr i32 %a, 32 29 ret i32 %shift 32 ; Make sure that we don't generate negative shift amounts. 38 %shift = ashr i32 %a, %sub 39 ret i32 %shift 47 %shift = ashr i32 %a, %amt [all …]
|
D | shift-02.ll | 10 %shift = lshr i32 %a, 1 11 ret i32 %shift 19 %shift = lshr i32 %a, 31 20 ret i32 %shift 28 %shift = lshr i32 %a, 32 29 ret i32 %shift 32 ; Make sure that we don't generate negative shift amounts. 38 %shift = lshr i32 %a, %sub 39 ret i32 %shift 47 %shift = lshr i32 %a, %amt [all …]
|
/external/speex/libspeex/ |
D | fixed_generic.h | 45 #define SHR16(a,shift) ((a) >> (shift)) argument 46 #define SHL16(a,shift) ((a) << (shift)) argument 47 #define SHR32(a,shift) ((a) >> (shift)) argument 48 #define SHL32(a,shift) ((a) << (shift)) argument 49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift)) argument 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument 51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) argument 55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \ argument 56 (x)<=-(SHL32(a,shift)) ? -(a) : \ 57 (PSHR32(x, shift))) [all …]
|
/external/libhevc/common/ |
D | ihevc_itrans_recon.c | 111 WORD32 shift; in ihevc_itrans_recon_4x4_ttype1() local 120 shift = IT_SHIFT_STAGE_1; in ihevc_itrans_recon_4x4_ttype1() 121 add = 1 << (shift - 1); in ihevc_itrans_recon_4x4_ttype1() 139 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1() 141 CLIP_S16((55 * c[2] - 29 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1() 143 … CLIP_S16((74 * (pi2_src[0] - pi2_src[2 * src_strd] + pi2_src[3 * src_strd]) + add) >> shift); in ihevc_itrans_recon_4x4_ttype1() 145 CLIP_S16((55 * c[0] + 29 * c[2] - c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1() 155 shift = IT_SHIFT_STAGE_2; in ihevc_itrans_recon_4x4_ttype1() 156 add = 1 << (shift - 1); in ihevc_itrans_recon_4x4_ttype1() 168 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1() [all …]
|
D | ihevc_weighted_pred.c | 112 WORD32 shift, in ihevc_weighted_pred_uni() argument 125 i4_tmp += 1 << (shift - 1); in ihevc_weighted_pred_uni() 126 i4_tmp = (i4_tmp >> shift) + off0; in ihevc_weighted_pred_uni() 197 WORD32 shift, in ihevc_weighted_pred_chroma_uni() argument 210 i4_tmp += 1 << (shift - 1); in ihevc_weighted_pred_chroma_uni() 211 i4_tmp = (i4_tmp >> shift) + off0_cb; in ihevc_weighted_pred_chroma_uni() 216 i4_tmp += 1 << (shift - 1); in ihevc_weighted_pred_chroma_uni() 217 i4_tmp = (i4_tmp >> shift) + off0_cr; in ihevc_weighted_pred_chroma_uni() 302 WORD32 shift, in ihevc_weighted_pred_bi() argument 317 i4_tmp += (off0 + off1 + 1) << (shift - 1); in ihevc_weighted_pred_bi() [all …]
|
/external/aac/libFDK/src/arm/ |
D | scale_arm.cpp | 107 int shift = scalefactor + 1; in scaleValuesWithFactor() local 110 shift = fixmin_I(shift,(INT)DFRACT_BITS-1); in scaleValuesWithFactor() 112 if (shift >= 0) in scaleValuesWithFactor() 124 tmp0 <<= shift; in scaleValuesWithFactor() 125 tmp1 <<= shift; in scaleValuesWithFactor() 126 tmp2 <<= shift; in scaleValuesWithFactor() 127 tmp3 <<= shift; in scaleValuesWithFactor() 137 tmp0 <<= shift; in scaleValuesWithFactor() 143 shift = -shift; in scaleValuesWithFactor() 154 tmp0 >>= shift; in scaleValuesWithFactor() [all …]
|
/external/freetype/src/base/ |
D | fttrigon.c | 136 FT_Int shift; in ft_trig_prenorm() local 142 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 144 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 146 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 152 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 155 shift = -shift; in ft_trig_prenorm() [all …]
|
/external/v8/test/unittests/base/ |
D | bits-unittest.cc | 49 TRACED_FORRANGE(uint32_t, shift, 0, 31) { in TEST() 50 EXPECT_EQ(31u - shift, CountLeadingZeros32(1u << shift)); in TEST() 59 TRACED_FORRANGE(uint32_t, shift, 0, 63) { in TEST() 60 EXPECT_EQ(63u - shift, CountLeadingZeros64(V8_UINT64_C(1) << shift)); in TEST() 70 TRACED_FORRANGE(uint32_t, shift, 0, 31) { in TEST() 71 EXPECT_EQ(shift, CountTrailingZeros32(1u << shift)); in TEST() 80 TRACED_FORRANGE(uint32_t, shift, 0, 63) { in TEST() 81 EXPECT_EQ(shift, CountTrailingZeros64(V8_UINT64_C(1) << shift)); in TEST() 90 TRACED_FORRANGE(uint32_t, shift, 0, 31) { in TEST() 91 EXPECT_TRUE(IsPowerOfTwo32(1U << shift)); in TEST() [all …]
|
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/ |
D | fttrigon.c | 136 FT_Int shift; in ft_trig_prenorm() local 142 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 144 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 146 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 152 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 155 shift = -shift; in ft_trig_prenorm() [all …]
|
/external/pdfium/third_party/freetype/src/base/ |
D | fttrigon.c | 136 FT_Int shift; in ft_trig_prenorm() local 142 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 144 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 146 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 152 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 155 shift = -shift; in ft_trig_prenorm() [all …]
|
/external/libopus/celt/ |
D | fixed_generic.h | 68 #define SHR16(a,shift) ((a) >> (shift)) argument 70 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) argument 72 #define SHR32(a,shift) ((a) >> (shift)) argument 74 #define SHL32(a,shift) ((opus_int32)((opus_uint32)(a)<<(shift))) argument 77 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument 79 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) argument 82 #define SHR(a,shift) ((a) >> (shift)) argument 83 #define SHL(a,shift) SHL32(a,shift) argument 84 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument
|
/external/ltrace/sysdeps/linux-gnu/arm/ |
D | regs.c | 78 uint32_t shift; in arm_get_shifted_register() local 80 if (arm_get_register_offpc(proc, BITS(inst, 8, 11), &shift) < 0) in arm_get_shifted_register() 82 shift &= 0xff; in arm_get_shifted_register() 84 shift = BITS(inst, 7, 11); in arm_get_shifted_register() 96 res = shift >= 32 ? 0 : res << shift; in arm_get_shifted_register() 100 res = shift >= 32 ? 0 : res >> shift; in arm_get_shifted_register() 104 if (shift >= 32) in arm_get_shifted_register() 105 shift = 31; in arm_get_shifted_register() 107 ? ~((~res) >> shift) : res >> shift); in arm_get_shifted_register() 111 shift &= 31; in arm_get_shifted_register() [all …]
|
/external/libhevc/decoder/ |
D | ihevcd_itrans_recon_dc.c | 94 WORD32 add, shift; in ihevcd_itrans_recon_dc_luma() local 102 shift = IT_SHIFT_STAGE_1; in ihevcd_itrans_recon_dc_luma() 103 add = 1 << (shift - 1); in ihevcd_itrans_recon_dc_luma() 104 dc_value = CLIP_S16((quant_out * 64 + add) >> shift); in ihevcd_itrans_recon_dc_luma() 105 shift = IT_SHIFT_STAGE_2; in ihevcd_itrans_recon_dc_luma() 106 add = 1 << (shift - 1); in ihevcd_itrans_recon_dc_luma() 107 dc_value = CLIP_S16((dc_value * 64 + add) >> shift); in ihevcd_itrans_recon_dc_luma() 124 WORD32 add, shift; in ihevcd_itrans_recon_dc_chroma() local 133 shift = IT_SHIFT_STAGE_1; in ihevcd_itrans_recon_dc_chroma() 134 add = 1 << (shift - 1); in ihevcd_itrans_recon_dc_chroma() [all …]
|